Property | Type | Description | |
---|---|---|---|
$engine | Symfony\Bundle\FrameworkBundle\Templating\EngineInterface | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
Method | Description | |
---|---|---|
__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 = [] ) : |
||
resolveControllerTemplate ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName ) : string |
Method | Description | |
---|---|---|
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 |
public __construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $engine, Symfony\Component\HttpKernel\KernelInterface $kernel ) | ||
$engine | Symfony\Bundle\FrameworkBundle\Templating\EngineInterface | |
$kernel | Symfony\Component\HttpKernel\KernelInterface |
protected getBundleForClass ( ReflectionClass $reflectionClass ) : Symfony\Component\HttpKernel\Bundle\BundleInterface | ||
$reflectionClass | ReflectionClass | |
return | Symfony\Component\HttpKernel\Bundle\BundleInterface |
protected getBundleName ( ReflectionClass $reflectionClass ) : string | ||
$reflectionClass | ReflectionClass | |
return | string |
protected getControllerLogicalName ( ReflectionClass $reflectionClass ) : string | ||
$reflectionClass | ReflectionClass | |
return | string |
public renderControllerResponse ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName, array $parameters = [] ) : |
||
$controller | WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface | |
$templateName | string | |
$parameters | array | |
return |
public resolveControllerTemplate ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName ) : string | ||
$controller | WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface | |
$templateName | string | |
return | string |
protected EngineInterface,Symfony\Bundle\FrameworkBundle\Templating $engine | ||
return | Symfony\Bundle\FrameworkBundle\Templating\EngineInterface |