Свойство | Type | Description | |
---|---|---|---|
$container | Symfony\Component\DependencyInjection\ContainerInterface |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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 | |
Résultat | template reference |
public onKernelController ( |
||
$event | A FilterControllerEvent instance |
public onKernelView ( |
||
$event | A GetResponseForControllerResultEvent instance |