Recuperation du themeMapper

@return PlaygroundDesign\Mapper\Theme $themeMapper
490173
public function getThemeMapper($sm)
    {
        if (null === $this->themeMapper) {
            $this->themeMapper = $sm->get('playgrounddesign_theme_mapper');
        }

        return $this->themeMapper;
    }
266405
public function getMapper()
    {
        if (!$this->mapper instanceof UserProviderInterface) {
            $this->setMapper($this->getServiceLocator()->get('SocialAuth-UserProviderMapper'));
        }

        return $this->mapper;
    }
927229
public function getMap() {
        $return_collection = new \Doctrine\Common\Collections\ArrayCollection($this->getCoordinate()->filter(function ($coordinate) {
                    return get_class($coordinate) == "Haven\PersonaBundle\Entity\Map";
                })->getValues());

        return $return_collection;
    }
243796
private function getTheme($target, $themeId){

        $returnValue = null;
        if(!$this->isRegistered($target)){
            throw new \common_Exception('Target '.$target.' does not exist');
        } else {
            $array = $this->get($target);
            $found = false;
            foreach ($array['available'] as $theme) {
                if ($theme['id'] == $themeId) {
                    $found = true;
                    $returnValue = $theme;
                    break;
                }
            }
            if (!$found) {
                throw new ThemeNotFoundException('Theme '.$themeId.' not found for target '.$target);
            }
        }
        return $returnValue;
    }
1172655
public function getWebsiteMapper()
    {
        if (null === $this->websiteMapper) {
            $this->websiteMapper = $this->serviceLocator->get('playgroundcore_website_mapper');
        }

        return $this->websiteMapper;
    }
467897
public function getLocaleMapper()
    {
        if (null === $this->localeMapper) {
            $this->localeMapper = $this->serviceLocator->get('playgroundcore_locale_mapper');
        }

        return $this->localeMapper;
    }
922987
public function getSlideMapper()
    {
        if (null === $this->slideMapper) {
            $this->slideMapper = $this->serviceLocator->get('playgroundcms_slide_mapper');
        }

        return $this->slideMapper;
    }
1309739
public function find($themeName)
    {
        // Search for registered themes
        foreach ($this->themes as $theme) {
            if ($theme->name == $themeName) {
                return $theme;
            }

        }

        throw new Exceptions\themeNotFound($themeName);
    }
1120645
protected function persist(ImportMapperInterface $userMapper)
    {
        if (!$userMapper instanceof UserMapperInterface) {
            throw new \Exception('Mapper should be a UserMapper');
        }

        $plainPassword = $userMapper->getPlainPassword();
        $properties    = $userMapper->getProperties();

        $class = $this->getUserClass($properties);

        $results = $class->searchInstances(
            [
                UserRdf::PROPERTY_LOGIN => $properties[UserRdf::PROPERTY_LOGIN]
            ],
            [
                'like' => false,
                'recursive' => true
            ]
        );

        if(count($results) > 0){
            $resource = $this->mergeUserProperties(current($results), $properties);
        } else {
            $resource = $class->createInstanceWithProperties($properties);
        }

        $this->triggerUserUpdated($resource, $properties, $plainPassword);

        return $resource;
    }
1165151
public function getThemesFromDir()
	{
		$themeList = array();
		$themePath = Yii::getPathOfAlias('webroot.themes');
		$themes    = scandir($themePath);
		foreach($themes as $theme) {
			$themeName = $this->urlTitle($theme);
			$themeFile = $themePath.'/'.$theme.'/'.$themeName.'.yaml';
			if(file_exists($themeFile)) {
				if(!in_array($themeName, $this->getIgnoreTheme())) {
					$themeList[] = $theme;
				}
			}
		}

		if(count($themeList) > 0)
			return $themeList;
		else
			return false;
	}
1270028
public function getPrizeMapper()
    {
        if (null === $this->prizeMapper) {
            $this->prizeMapper = $this->serviceLocator->get('playgroundgame_prize_mapper');
        }

        return $this->prizeMapper;
    }
196894
public function getActionMapper()
    {
        if (null === $this->actionMapper) {
            $this->actionMapper = $this->serviceLocator->get('playgroundflow_action_mapper');
        }

        return $this->actionMapper;
    }
527482
protected function getTheme()
    {
        if ($this->theme == null) {
            $this->theme = new Theme($this->app['view'], $this->options['theme'], $this->options['custom']);
        }

        return $this->theme;
    }
465692
public function getCollectionThemeObject()
    {
        if (!isset($this->themeObject)) {
            $app = Facade::getFacadeApplication();
            $tmpTheme = $app->make(ThemeRouteCollection::class)
                ->getThemeByRoute($this->getCollectionPath());
            if (isset($tmpTheme[0])) {
                switch ($tmpTheme[0]) {
                    case VIEW_CORE_THEME:
                        $this->themeObject = new \Concrete\Theme\Concrete\PageTheme();
                        break;
                    case 'dashboard':
                        $this->themeObject = new \Concrete\Theme\Dashboard\PageTheme();
                        break;
                    default:
                        $this->themeObject = PageTheme::getByHandle($tmpTheme[0]);
                        break;
                }
            } elseif ($this->vObj->pThemeID < 1) {
                $this->themeObject = PageTheme::getSiteTheme();
            } else {
                $this->themeObject = PageTheme::getByID($this->vObj->pThemeID);
            }
        }
        if (!$this->themeObject) {
            $this->themeObject = PageTheme::getSiteTheme();
        }

        return $this->themeObject;
    }
731837
public function getZfcUserMapper()
    {
        if (!$this->zfcUserMapper instanceof UserMapperInterface) {
            $this->setZfcUserMapper($this->getServiceManager()->get('zfcuser_user_mapper'));
        }

        return $this->zfcUserMapper;
    }
1273202
protected function mapContrib()
    {
        $root    = $this->finder->getSourceRoot();
        $pathMap = $this->config->getPaths();
        $paths   = [];

        foreach ($this->getPackages() as $package) {

            if ($drupalType = $this->getDrupalType($package)) {
                $sourcePath = $this->getInstallPath($package);

                if (strpos($sourcePath, $root) !== false) {
                    $sourcePath = $this->getFS()->makePathRelative(
                        $sourcePath,
                        $root
                    );
                }

                $mapRef =& $paths[$drupalType][rtrim($sourcePath, DIRECTORY_SEPARATOR)];

                if (in_array($drupalType, ['module', 'theme'])) {
                    $mapRef = sprintf(
                        $pathMap[$drupalType] . DIRECTORY_SEPARATOR . '%s',
                        'contrib',
                        basename($package->getPrettyName())
                    );
                }

                else {
                    $mapRef = $pathMap[$drupalType];
                }
            }
        }

        return array_intersect_key($paths, $pathMap);
    }
1081409
public function getThemesConfig()
    {
        if (empty($this->config['Rcm'])
            || empty($this->config['Rcm']['themes'])
        ) {
            throw new RuntimeException(
                'No Themes found defined in configuration.  Please report the issue
                 with the themes author.'
            );
        }

        return $this->config['Rcm']['themes'];
    }