Skip to content
Advertisement

Tag: kernel

Symfony6 changing the controller manually using the “kernel.controller” event. How to inject the service container?

The application that I am building is not going to work in a traditional way. All the routes ar going to be stored in the database. And based on the route provided I need to get the correct controller and action to be executed. As I understand this can be achieved using the “kernel.controller” event listener: https://symfony.com/doc/current/reference/events.html#kernel-controller I am trying

Advertisement