Chapters
48 Chapters
|
5:05:05
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: ^7.1.3
Subscribe to download the code!Compatible PHP versions: ^7.1.3
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe 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!
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.
Este tutorial está construido con Symfony 4.3, pero funcionará bien en Symfony 4.4 o 5.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"composer/package-versions-deprecated": "^1.11", // 1.11.99
"doctrine/annotations": "^1.0", // v1.8.0
"doctrine/doctrine-bundle": "^1.6.10", // 1.11.2
"doctrine/doctrine-migrations-bundle": "^1.3|^2.0", // v2.0.0
"doctrine/orm": "^2.5.11", // v2.6.3
"intervention/image": "^2.4", // 2.4.2
"league/flysystem-bundle": "^1.0", // 1.1.0
"phpdocumentor/reflection-docblock": "^3.0|^4.0", // 4.3.1
"sensio/framework-extra-bundle": "^5.3", // v5.3.1
"symfony/console": "4.3.*", // v4.3.2
"symfony/dotenv": "4.3.*", // v4.3.2
"symfony/flex": "^1.9", // v1.21.6
"symfony/framework-bundle": "4.3.*", // v4.3.2
"symfony/messenger": "4.3.*", // v4.3.4
"symfony/property-access": "4.3.*", // v4.3.2
"symfony/property-info": "4.3.*", // v4.3.2
"symfony/serializer": "4.3.*", // v4.3.2
"symfony/validator": "4.3.*", // v4.3.2
"symfony/webpack-encore-bundle": "^1.5", // v1.6.2
"symfony/yaml": "4.3.*" // v4.3.2
},
"require-dev": {
"easycorp/easy-log-handler": "^1.0.7", // v1.0.7
"symfony/debug-bundle": "4.3.*", // v4.3.2
"symfony/maker-bundle": "^1.0", // v1.12.0
"symfony/monolog-bundle": "^3.0", // v3.4.0
"symfony/stopwatch": "4.3.*", // v4.3.2
"symfony/twig-bundle": "4.3.*", // v4.3.2
"symfony/var-dumper": "4.3.*", // v4.3.2
"symfony/web-profiler-bundle": "4.3.*" // v4.3.2
}
}
8 Comments
fanot vs direct exchange ?
Hey Jeremy,
Could you clarify your message adding a bit more context? :)
Cheers!
How I can add binding_keys for queue when application is already running (not in config)?
Hi Olya Ladygina!
The
binding_keysis only used by Symfony when it's "setting up" the queues. So basically, if you already have a queue, there is nothing stopping you from manually going into RabbitMQ and adding the binding key there. Symfony won't know or care that this happened :). I would also add it to the config, just for consistency (unless you'reauto_setup: false, which means you're telling Symfony to never do any setup - in that case, binding_keys is truly 100% ignored and unnecessary).Let me know if that makes sense!
Cheers!
Thanks for the answer, but unfortunately this does not suit me, because I cannot know what binding_keys I need to add. And there is no point in manually adding or removing them, the application should do it.
Hi Olya Ladygina!
Ah, ok! Can you explain what you need to accomplish a bit more? I think I am misunderstanding, and not giving you a good answer :). What is the actual problem that you need to solve? That will help me see why you can't put the binding_keys into config.
Cheers!
Do you think that it is a really good way to initialize all settings kinda "side-effect" style? I think it is the wrong approach for a production server. Instead using the auto_setup option in the messenger component we have to configure all the things manually. It would be cool if you explain how to configure it by yourself in the Rabbit. Or at least just mention that it is totally not a good idea to use the auto_setup option in production.
Hey Roman,
Could you want this tutorial up to the 44 chapter, including 44? Here's where exactly we set auto_setup to false: https://symfonycasts.com/sc... . I suppose you will answer the question yourself after it. Or ping us again if it would be still fuzzy to you.
Cheers!
"Houston: no signs of life"
Start the conversation!