Legacy kernel event: old version (page id 21987963)
Skip to end of metadata Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 6 Current »
For better integration between 5.x (symfony based) kernel and legacy (4.x) kernel, injection is used to inject settings, session and current siteaccess from 5.x into legacy using an event: kernel.event_subscriber
This page describe how you can do that.
Adding a kernel.event_subscriber
A legacy kernel event subscriber is added by tagging your event subscriber service.
Bellow is an example of yml configuration involved:
kernel.event_subscriber
The class refered to as %my_app.legacy_mapper.something.class% can look like this:
my_app.legacy_mapper.something.class
- No labels
Contributors
- André Rømcke
- Ricardo Correia Updated
Comments
Add a comment