🐉 Boss: the tavern turned upside down

Exercise 6 of 6 in chapter 9 · 340 XP · 5 objectives checked by tests

Topics covered: DebuggingEventsDoctrine listenersService decorationCache

Pippin spent the week “making the tavern more robust”. He read half of the Symfony documentation and applied bits of it everywhere. The result:

Your mission

Four breakdowns, four different places. Find them and fix them, without breaking anything else.

Your tools

In the console:

debug:event-dispatcher kernel.request
debug:event-dispatcher "App\Event\PlatAjoute"
debug:container "App\Oracle\Oracle"
debug:dotenv

In the preview: the aviary and the mage's bill (/aviary), the stew's page (/dish/dwarf-stew), and the kitchen (bruna@drunken-dragon.me / cauldron).

Tavern tip

None of these breakdowns produces an error. Every piece works; what's wrong is when it is called, by whom, and with what. The debug: commands show how Symfony assembled the tavern: read them before rereading the code.