PHP Класс WellCommerce\Bundle\CoreBundle\Helper\Templating\TemplatingHelper

Автор: Adam Piotrowski ([email protected])
Наследование: implements WellCommerce\Bundle\CoreBundle\Helper\Templating\TemplatingHelperInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$engine Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$kernel Symfony\Component\HttpKernel\KernelInterface

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

Метод Описание
__construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $engine, Symfony\Component\HttpKernel\KernelInterface $kernel ) TemplatingHelper constructor.
render ( string $name, array $parameters = [] ) : string
renderControllerResponse ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName, array $parameters = [] ) : Response
resolveControllerTemplate ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName ) : string

Защищенные методы

Метод Описание
getBundleForClass ( ReflectionClass $reflectionClass ) : Symfony\Component\HttpKernel\Bundle\BundleInterface Returns bundle for particular controller
getBundleName ( ReflectionClass $reflectionClass ) : string Returns the bundle's name
getControllerLogicalName ( ReflectionClass $reflectionClass ) : string Returns the controller's logical name

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

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

TemplatingHelper constructor.
public __construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $engine, Symfony\Component\HttpKernel\KernelInterface $kernel )
$engine Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$kernel Symfony\Component\HttpKernel\KernelInterface

getBundleForClass() защищенный Метод

Returns bundle for particular controller
protected getBundleForClass ( ReflectionClass $reflectionClass ) : Symfony\Component\HttpKernel\Bundle\BundleInterface
$reflectionClass ReflectionClass
Результат Symfony\Component\HttpKernel\Bundle\BundleInterface

getBundleName() защищенный Метод

Returns the bundle's name
protected getBundleName ( ReflectionClass $reflectionClass ) : string
$reflectionClass ReflectionClass
Результат string

getControllerLogicalName() защищенный Метод

Returns the controller's logical name
protected getControllerLogicalName ( ReflectionClass $reflectionClass ) : string
$reflectionClass ReflectionClass
Результат string

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

public render ( string $name, array $parameters = [] ) : string
$name string
$parameters array
Результат string

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

public renderControllerResponse ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName, array $parameters = [] ) : Response
$controller WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface
$templateName string
$parameters array
Результат Symfony\Component\HttpFoundation\Response

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

public resolveControllerTemplate ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName ) : string
$controller WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface
$templateName string
Результат string

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

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

protected EngineInterface,Symfony\Bundle\FrameworkBundle\Templating $engine
Результат Symfony\Bundle\FrameworkBundle\Templating\EngineInterface

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

protected KernelInterface,Symfony\Component\HttpKernel $kernel
Результат Symfony\Component\HttpKernel\KernelInterface