Chapters
21 Chapters
|
2:23:48
|
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.1",
"ext-ctype": "*",
"ext-iconv": "*",
"symfony/asset": "6.0.*", // v6.0.3
"symfony/console": "6.0.*", // v6.0.3
"symfony/dotenv": "6.0.*", // v6.0.3
"symfony/flex": "^2", // v2.4.5
"symfony/framework-bundle": "6.0.*", // v6.0.4
"symfony/monolog-bundle": "^3.0", // v3.7.1
"symfony/runtime": "6.4.3", // v6.4.3
"symfony/twig-bundle": "6.0.*", // v6.0.3
"symfony/ux-turbo": "^2.0", // v2.0.1
"symfony/webpack-encore-bundle": "^1.13", // v1.13.2
"symfony/yaml": "6.0.*", // v6.0.3
"twig/extra-bundle": "^2.12|^3.0", // v3.3.8
"twig/twig": "^2.12|^3.0" // v3.3.8
},
"require-dev": {
"symfony/debug-bundle": "6.0.*", // v6.0.3
"symfony/stopwatch": "6.0.*", // v6.0.3
"symfony/web-profiler-bundle": "6.0.*" // v6.0.3
}
}
16 Comments
A lot of time wasting on packs and recipes. Get to the point.
Hey Webcommenterdude,
Sorry if this video was boring for you because of long explaining of the installation process. Unfortunately, that is something we have to cover so other users do not get lost in it. Though, even in this short video we covered some new installed features like Symfony Web Debug Toolbar and VarDumper component. I bet the further chapters would be more interesting for you ;)
P.S. Keep in mind that this is the intro course into the Symfony 6 and is mostly designed for beginners. Yeah, if you already know Symfony and works with it - I agree, it might be less interesting for you... but you can rewind some known for you parts :)
Anyway, thank you for your feedback! We will definitely consider this in our future tutorials and try to spend less time on explaining simple things like the packs and recipes. We just wanted to cover it well now, and do not focus too much attention on it further in this course... and in further courses as well.
Cheers!
One issue I had was the debug bar kept trying to load and would not. A .htaccess is required in the public directory for it to work.
` <IfModule mod_rewrite.c>
</IfModule>`
Hey Benanamen,
Thank you for sharing it. If you install the library
symfony/apache-packit will generate the.htaccessfor you. You can read more about how to configure a web server for a Symfony app https://symfony.com/doc/current/setup/web_server_configuration.htmlCheers
Hello,
I have a problem seeing the Web Debug Toolbar - I am following SF6 SymfonyCasts tutorial in the March 2026, so quite late (but I like it :) ) - so it is obvious that my installed packaged are newer than the ones Ryan was using (In the first step, "Hello Symfony" I specified the Symfony version to use latest 6.x (and I think, the only one currently supported..) branch, with
symfony new mixed_vinyl --version=6.4. This is all the difference I did.The problem is there is no WDT down in the Symfony-powered site, (
dump($variable)in PHP code does not work either - though in Twig code andddin PHP works), there is a link127.0.0.1:8000/_profiler/- which leads tohttps://127.0.0.1:8000/_profiler/empty/search/results?limit=10- strange that this profiler is very limited to what I saw in the tutorial video, and also what I saw and used during reading Fabien Potencier's book about Symfony 6.I read other comments here, I thought user therouv had similar issue - but I have
extendsclause in my homepage twig page, so it is not this.Also, in the output HTML source (in Firefox right mouse click -> "Wiew Source") in the bottom of the source, there is:
and a lot of JavaScript mode.
Please help me on this issue - or advise, should I rather jump into Symfony 7 SymfonyCasts. I would like to also take this course tho, I like the "bottom-up" tutorial style of this series (as opposed to "up-to-bottom" from Fabien Potencier's book (not worse or better, just different - the book was a quick introduction, to have an app in production in few minutes, this one is to get know Symfony's from atoms going to particles :nerd: )
Hey Jan,
We do recommend our users download the course code from the video page and follow the tutorial from the start/ directory there. This way, you will have the exact set of packages that the course author has. But if you really want to follow our courses on the newer Symfony version - that's up to you and totally possible too, but you may need to keep in mind that it might be a bit different from what you see on the video because of the different version.
Hm, the code snippet you mentioned already means that you should have the Web Debug Toolbar (WDT) in your project and it should display well. The only reason why you may not see it is that you don't have a
<body>tag in your HTML output. Make sure your template has the defaulthtml/bodytags layout, because that WDT is added exactly before the closingbodytag. if you see less tabs in the profiler - that's most probably because you're missing some packages that Ryan has in his project. The more Symfony packages you install - the more tabs will appear in the WDT.The
dump()in PHP code is tricky - it's not something like dump and die like withdd(). Instead, it collects the dump and show it in the WDT or in Profiler for that request, but it does not block the page execution. That's why you won't see it on the page, only in the WDT or profiler :)I hope this clarifies things for you! If you still have any questions - please, don't hesitate to ask. You can also share some screenshots that will help a lot. For this you can upload a screenshot to an image hosting e.g. Imgur and then just link to it in the comments :)
Cheers!
Thanks for the tutorial, I like that you explain recipes and composre in greater detail than in the tutorial for Symfony 5, where it was more like magic when the debug tool was installed. (It still is magical though 🪄)
Hey @Brentspine
Thanks for your feedback, and yes, recipes feel like magic, but it is good magic, they save so much time adding configuration
Cheers!
Hi, I have problem. When i try install debug by "composer require debug" i receive:
In FileLoader.php line 172:
Container extension "debug" is not registered in C:\Users\surow\Symfony Projects\mixed_vinyl\config/packages/debug.yaml (which is being imported fr
om "C:\Users\surow\Symfony Projects\mixed_vinyl\src\Kernel.php").
In ContainerBuilder.php line 214:
Container extension "debug" is not registered.
Please, help.
Hey @Krystian-S
Do you already have a
config/packages/debug.yamlfile but the library it's not installed yet? Try removing the config file, and clear the cache manually just in caserm -r var/cacheCheers!
Followed the steps exactly and yet the toolbar does not appear on any of my browsers.
I've restarted the server, reinstalled the debug-bundle, made sure web_profiler.toolbar is set to true and that APP_ENV=dev... and still nothing.
What is wrong?
The /_profiler/ path works on the browser, but the toolbar is not appearing anywhere.
Hey Therouv,
Hm, did you make sure that the recipe for that package was executed? Sometimes you should allow executing it manually, but sometimes you. may allow it in your composer.json file. Though it might be forbidden in your composer.json and so no recipe was installed. Though, /_profile/ path works for you - I'd guess that the recipe was installed, but would be good to double check anyway. You can remove and install. the package again and look closer to the composer's output - it should have some recipe executed there.
Also, the very important requirement for the WDT to appear is that you should have <body> tag rendered on the page where you want to see it. Please, make sure you have a valid HTML markup on that page, especially the base html/head/body tags and that there are no any misprints or missing closing tags or brackets or quotes. I bet the invalid HTML syntax on that page prevents that WDT to show for you.
Also, try to clear the cache, i'd recommend you to remove the cache dir manually with
rm -rfjust in case. Sometimes it might be just. a simple cache problem.I hope this helps!
Cheers!
That was it! I forgot to
extendtheblockfrombase.html.twig. It works now.Thank you!
Hey Therouv,
Ah, yeah, I got this problem as well before ;) Glad to hear we found the problem :) And thanks for confirming the root of the problem!
Cheers!
Hey Yuuki,
you mean on the commit message, right? That was made on purpose :)
Cheers!
"Houston: no signs of life"
Start the conversation!