PHP Class Elcodi\Store\CoreBundle\Twig\TemplateLocatorExtension

Inheritance: extends Twig_Extensio\Twig_Extension
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$container Symfony\Component\DependencyInjection\ContainerInterface Container

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) Construct
getFunctions ( ) : Twig_SimpleFunctio\Twig_SimpleFunction[] Return all functions
getName ( ) : string Returns the name of the extension.
locateTemplate ( string $templatePath ) : string Return the referrer

Method Details

__construct() public method

We inject the container because of a circular reference. ASAP this injection should be removed and fixed
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface Container

getFunctions() public method

Return all functions
public getFunctions ( ) : Twig_SimpleFunctio\Twig_SimpleFunction[]
return Twig_SimpleFunctio\Twig_SimpleFunction[] Functions

getName() public method

Returns the name of the extension.
public getName ( ) : string
return string The extension name

locateTemplate() public method

Return the referrer
public locateTemplate ( string $templatePath ) : string
$templatePath string Template path
return string found template path

Property Details

$container protected property

Container
protected ContainerInterface,Symfony\Component\DependencyInjection $container
return Symfony\Component\DependencyInjection\ContainerInterface