08.
Symfony Magic: Replace the _controller
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
2 Comments
The fact that listeners are fired in some order, and that the new custom one was automatically (it seems) added to the end, makes one ask, "What determines the order?" and "How do I alter that if desired/needed?"
Yo Michael!
You've been curious lately - awesome :). So there *is* a priority attached to each listener - from -1024 to 1024 irrc, and a new listener defaults to zero. Most of the time, you don't care when you're called, but in a few cases, you do (e.g. maybe you want a listener to be called *before* routing, which has a priority of something like 32). In that case, you can add a "priority: 100" and you're all set!
Cheers!
"Houston: no signs of life"
Start the conversation!