PHP Class Elcodi\Store\CoreBundle\Twig\TemplateLocatorExtension

Inheritance: extends Twig_Extensio\Twig_Extension
Afficher le fichier Open project: elcodi/bamboo

Protected Properties

Свойство Type Description
$container Symfony\Component\DependencyInjection\ContainerInterface Container

Méthodes publiques

Méthode 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 méthode

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 méthode

Return all functions
public getFunctions ( ) : Twig_SimpleFunctio\Twig_SimpleFunction[]
Résultat Twig_SimpleFunctio\Twig_SimpleFunction[] Functions

getName() public méthode

Returns the name of the extension.
public getName ( ) : string
Résultat string The extension name

locateTemplate() public méthode

Return the referrer
public locateTemplate ( string $templatePath ) : string
$templatePath string Template path
Résultat string found template path

Property Details

$container protected_oe property

Container
protected ContainerInterface,Symfony\Component\DependencyInjection $container
Résultat Symfony\Component\DependencyInjection\ContainerInterface