PHP Class WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocator

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocatorInterface
Afficher le fichier Open project: wellcommerce/wellcommerce

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, WellCommerce\Bundle\ThemeBundle\Context\Front\ThemeContextInterface $themeContext, string $fallbackTheme, string $themesDir ) ThemeLocator constructor.
getCurrentThemeFolder ( ) : string
getThemeFolders ( ) : array
getThemePathPattern ( ) : string
getThemesDirectory ( ) : string
locateTemplate ( string $name ) : string

Méthodes protégées

Méthode Description
locateBundlesResource ( array $bundles, array $parameters, string $name ) : string

Private Methods

Méthode Description
getBundleNameAndPath ( string $name ) : array
getDefaultBundleResourcePath ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle, string $path, array &$resourcePaths )
isValidFilename ( string $name ) : boolean
isValidPath ( string $path ) : boolean
locateThemePathForBundleResource ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle, array $parameters, array &$checkPaths )
scanThemesDirectory ( ) : array

Method Details

__construct() public méthode

ThemeLocator constructor.
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, WellCommerce\Bundle\ThemeBundle\Context\Front\ThemeContextInterface $themeContext, string $fallbackTheme, string $themesDir )
$kernel Symfony\Component\HttpKernel\KernelInterface
$themeContext WellCommerce\Bundle\ThemeBundle\Context\Front\ThemeContextInterface
$fallbackTheme string
$themesDir string

getCurrentThemeFolder() public méthode

public getCurrentThemeFolder ( ) : string
Résultat string

getThemeFolders() public méthode

public getThemeFolders ( ) : array
Résultat array

getThemePathPattern() public méthode

public getThemePathPattern ( ) : string
Résultat string

getThemesDirectory() public méthode

public getThemesDirectory ( ) : string
Résultat string

locateBundlesResource() protected méthode

protected locateBundlesResource ( array $bundles, array $parameters, string $name ) : string
$bundles array
$parameters array
$name string
Résultat string

locateTemplate() public méthode

public locateTemplate ( string $name ) : string
$name string
Résultat string