PHP Class WellCommerce\Bundle\ThemeBundle\CacheWarmer\TemplatePathsCacheWarmer

Inheritance: extends Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer
Exibir arquivo Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$locator WellCommerce\Bundle\ThemeBundle\Locator\TemplateLocator

Public Methods

Method Description
isOptional ( ) : boolean Checks whether this warmer is optional or not.
warmUp ( string $cacheDir ) Warms up the cache.

Protected Methods

Method Description
locateTemplate ( Symfony\Component\Config\FileLocatorInterface $locator, TemplateReference $template, array &$templates ) Locates and appends template to an array

Method Details

isOptional() public method

Checks whether this warmer is optional or not.
public isOptional ( ) : boolean
return boolean always true

locateTemplate() protected method

Locates and appends template to an array
protected locateTemplate ( Symfony\Component\Config\FileLocatorInterface $locator, TemplateReference $template, array &$templates )
$locator Symfony\Component\Config\FileLocatorInterface
$template Symfony\Bundle\FrameworkBundle\Templating\TemplateReference
$templates array

warmUp() public method

Warms up the cache.
public warmUp ( string $cacheDir )
$cacheDir string The cache directory

Property Details

$locator protected_oe property

protected TemplateLocator,WellCommerce\Bundle\ThemeBundle\Locator $locator
return WellCommerce\Bundle\ThemeBundle\Locator\TemplateLocator