PHP Класс Elcodi\Store\CoreBundle\Twig\TemplateLocatorExtension

Наследование: extends Twig_Extensio\Twig_Extension
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$container Symfony\Component\DependencyInjection\ContainerInterface Container

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

Return all functions
public getFunctions ( ) : Twig_SimpleFunctio\Twig_SimpleFunction[]
Результат Twig_SimpleFunctio\Twig_SimpleFunction[] Functions

getName() публичный Метод

Returns the name of the extension.
public getName ( ) : string
Результат string The extension name

locateTemplate() публичный Метод

Return the referrer
public locateTemplate ( string $templatePath ) : string
$templatePath string Template path
Результат string found template path

Описание свойств

$container защищенное свойство

Container
protected ContainerInterface,Symfony\Component\DependencyInjection $container
Результат Symfony\Component\DependencyInjection\ContainerInterface