PHP Class Symfony\Component\HttpKernel\Event\FilterControllerEvent

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.
Author: Bernhard Schussek ([email protected])
Inheritance: extends KernelEvent
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, $controller, Request $request, $requestType )
getController ( ) : callable Returns the current controller
setController ( callable $controller ) Sets a new controller

Private Methods

Method Description
varToString ( $var )

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, $controller, Request $request, $requestType )
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
$request Symfony\Component\HttpFoundation\Request

getController() public method

Returns the current controller
public getController ( ) : callable
return callable

setController() public method

Sets a new controller
public setController ( callable $controller )
$controller callable