Symfony2 API
Class

Symfony\Component\HttpKernel\Event\FilterControllerEvent

class FilterControllerEvent extends KernelEvent

Allows filtering of a controller callable

You can call getController() to retrieve the current controller. With
setController() you can set a new controller that is used in the processing
of the request.

Controllers should be callables.

Methods

__construct(HttpKernelInterface $kernel, $controller, Request $request, $requestType)

callable getController()

Returns the current controller

setController(callable $controller)

Sets a new controller

Details

at line 38
public __construct(HttpKernelInterface $kernel, $controller, Request $request, $requestType)

Parameters

HttpKernelInterface $kernel
$controller
Request $request
$requestType

at line 52
public callable getController()

Returns the current controller

Return Value

callable

at line 66
public setController(callable $controller)

Sets a new controller

Parameters

callable $controller

Exceptions

LogicException