Свойство | Тип | Описание | |
---|---|---|---|
$container | Symfony\Component\DependencyInjection\ContainerInterface |
Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | Constructor. | |
onKernelController ( |
Guesses the template name to render and its variables and adds them to the request object. | |
onKernelView ( |
Renders the template and initializes a new response object with the rendered template content. |
Метод | Описание | |
---|---|---|
getBundleForClass ( string $class ) | Returns the Bundle instance in which the given class name is located. | |
guessTemplateName ( array $controller, |
Guesses and returns the template name to render based on the controller and action names. |
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | The service container instance |
protected getBundleForClass ( string $class ) | ||
$class | string | A fully qualified controller class name |
protected guessTemplateName ( array $controller, |
||
$controller | array | An array storing the controller object and action method |
$request | A Request instance | |
Результат | template reference |
public onKernelController ( |
||
$event | A FilterControllerEvent instance |
public onKernelView ( |
||
$event | A GetResponseForControllerResultEvent instance |