Method | Description | |
---|---|---|
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\DependencyInjection\ContainerInterface $container, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $controllerResolver ) | ||
forward ( string $controller, array $attributes = [], array $query = [] ) : Response | Forwards the request to another controller. | |
generateInternalUri ( string $controller, array $attributes = [], array $query = [] ) : string | Generates an internal URI for a given controller. | |
handle ( |
||
render ( string $controller, array $options = [] ) : string | Renders a Controller and returns the Response content. |
public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\DependencyInjection\ContainerInterface $container, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $controllerResolver ) | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$container | Symfony\Component\DependencyInjection\ContainerInterface | |
$controllerResolver | Symfony\Component\HttpKernel\Controller\ControllerResolverInterface |
public forward ( string $controller, array $attributes = [], array $query = [] ) : Response | ||
$controller | string | The controller name (a string like BlogBundle:Post:index) |
$attributes | array | An array of request attributes |
$query | array | An array of request query parameters |
return | Response | A Response instance |
public generateInternalUri ( string $controller, array $attributes = [], array $query = [] ) : string | ||
$controller | string | A controller name to execute (a string like BlogBundle:Post:index), or a relative URI |
$attributes | array | An array of request attributes |
$query | array | An array of request query parameters |
return | string | An internal URI |
public handle ( |
||
$request |