The FilterControllerEvent is an event in the PHP Symfony framework's HTTPKernel component. It is triggered before a controller is executed, allowing modifications or restrictions to be applied to the controller. This event enables developers to intervene in the processing of a request and implement additional logic, such as authorization checks or parameter modifications, before the controller is called. It provides flexibility and fine-grained control over the execution flow within the Symfony application.
PHP Symfony\Component\HttpKernel\Event FilterControllerEvent - 30 examples found. These are the top rated real world PHP examples of Symfony\Component\HttpKernel\Event\FilterControllerEvent extracted from open source projects. You can rate examples to help us improve the quality of examples.
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.