Chapters
22 Chapters
|
1:32:28
|
Login to bookmark this video
-
Course Code
Login or register to download the code!
Login or register to download the code!
-
This Video
Login or register to download the video!
Login or register to download the video!
-
Subtitles
Login or register to download the subtitles!
Login or register to download the subtitles!
-
Course Script
Login or register to download the script!
Login or register to download the script!
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/dbal": "^3", // 3.9.4
"doctrine/doctrine-bundle": "^2.13", // 2.13.2
"doctrine/doctrine-fixtures-bundle": "^3.6", // 3.7.1
"doctrine/orm": "^3.3", // 3.3.1
"dragonmantank/cron-expression": "^3.4", // v3.4.0
"knplabs/knp-time-bundle": "^2.4", // v2.4.0
"league/html-to-markdown": "^5.1", // 5.1.1
"symfony/asset": "7.2.*", // v7.2.0
"symfony/asset-mapper": "7.2.*", // v7.2.0
"symfony/console": "7.2.*", // v7.2.1
"symfony/doctrine-messenger": "7.2.*", // v7.2.3
"symfony/dotenv": "7.2.*", // v7.2.0
"symfony/flex": "^2", // v2.4.7
"symfony/form": "7.2.*", // v7.2.0
"symfony/framework-bundle": "7.2.*", // v7.2.2
"symfony/mailer": "7.2.*", // v7.2.0
"symfony/mailtrap-mailer": "7.2.*", // v7.2.0
"symfony/messenger": "7.2.*", // v7.2.3
"symfony/monolog-bundle": "^3.10", // v3.10.0
"symfony/remote-event": "7.2.*", // v7.2.0
"symfony/runtime": "7.2.*", // v7.2.0
"symfony/scheduler": "7.2.*", // v7.2.3
"symfony/security-csrf": "7.2.*", // v7.2.2
"symfony/stimulus-bundle": "^2.21", // v2.22.1
"symfony/twig-bundle": "7.2.*", // v7.2.0
"symfony/validator": "7.2.*", // v7.2.2
"symfony/webhook": "7.2.*", // v7.2.0
"symfony/yaml": "7.2.*", // v7.2.0
"symfonycasts/tailwind-bundle": "^0.7.1", // v0.7.1
"twig/cssinliner-extra": "^3.18", // v3.18.0
"twig/extra-bundle": "^3.0", // v3.18.0
"twig/inky-extra": "^3.19", // v3.19.0
"twig/twig": "^3.0", // v3.18.0
"zenstruck/messenger-monitor-bundle": "^0.5.1" // v0.5.1
},
"require-dev": {
"phpunit/phpunit": "^9.5", // 9.6.22
"symfony/browser-kit": "7.2.*", // v7.2.0
"symfony/css-selector": "7.2.*", // v7.2.0
"symfony/debug-bundle": "7.2.*", // v7.2.0
"symfony/maker-bundle": "^1.61", // v1.62.1
"symfony/phpunit-bridge": "^7.1", // v7.2.0
"symfony/stopwatch": "7.2.*", // v7.2.2
"symfony/web-profiler-bundle": "7.2.*", // v7.2.2
"zenstruck/browser": "^1.9", // v1.9.1
"zenstruck/console-test": "^1.7", // v1.7.0
"zenstruck/foundry": "^2.2", // v2.3.0
"zenstruck/mailer-test": "^1.4" // v1.4.2
}
}
5 Comments
Just a heads up for anyone who might run into the same issue I did when running multiple entity managers or might have renamed them: the bundle only looks for an entity manager named "default", despite the GitHub documentation saying you can overwrite it using
zenstruck_messenger_monitor.history.orm_manager.The hint here is this error message that occurs while the service container is being built:
If your entity manager is named anything other than "default", your equivalent service names (which you can see with
bin/console debug:container doctrine.orm) will include your renamed manager:There is an active PR (3 weeks old) that claims to fix this, but not sure when that might get merged.
I'm not sure there's any way around this other than naming your desired entity manager back to "default" or fork it in the meantime. I tried aliases but had no luck. If anyone else has ideas or solutions I'd love to hear them!
Hey @cpalsa!
Thanks for letting me know. I'll check out that PR.
--Kevin
Hey @cpalsa
I'm afraid you're right, the bundle has a flaw with multiple
ems. For the moment, you can reintroduce a minimal default EM. Define a lightweight default EM that points to the same connection, just to satisfy the bundle.Or, fork the PR you mentioned (you could even help push it moving forward)
Cheers!
WOOOWWW!!! GENIALLL!!
😍 I'm glad you like it!
"Houston: no signs of life"
Start the conversation!