Chapters
25 Chapters
|
2:34:05
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
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.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"knplabs/knp-time-bundle": "^1.18", // v1.19.0
"symfony/asset": "6.1.*", // v6.1.0-RC1
"symfony/console": "6.1.*", // v6.1.0-RC1
"symfony/dotenv": "6.1.*", // v6.1.0-RC1
"symfony/flex": "^2", // v2.4.5
"symfony/framework-bundle": "6.1.*", // v6.1.0-RC1
"symfony/http-client": "6.1.*", // v6.1.0-RC1
"symfony/monolog-bundle": "^3.0", // v3.8.0
"symfony/runtime": "6.4.3", // v6.4.3
"symfony/twig-bundle": "6.1.*", // v6.1.0-RC1
"symfony/ux-turbo": "^2.0", // v2.1.1
"symfony/webpack-encore-bundle": "^1.13", // v1.14.1
"symfony/yaml": "6.1.*", // v6.1.0-RC1
"twig/extra-bundle": "^2.12|^3.0", // v3.4.0
"twig/twig": "^2.12|^3.0" // v3.4.0
},
"require-dev": {
"symfony/debug-bundle": "6.1.*", // v6.1.0-RC1
"symfony/maker-bundle": "^1.41", // v1.42.0
"symfony/stopwatch": "6.1.*", // v6.1.0-RC1
"symfony/web-profiler-bundle": "6.1.*" // v6.1.0-RC1
}
}
11 Comments
Thanks for this course !) I like your way of teaching
Hello, University team!
Thank you for such a wonderful presentation of the material! Watching and learning is really interesting and informative!
I have a question—at the end of the last lesson, the platform showed me a message saying that I only had 69% progress and that I had probably missed a video or challenge (but I didn't!). How can I see which material from the course I haven't viewed or completed?
Hey @Kostiantyn
We're glad to hear you liked our content :)
In the sidebar (on this page), you'll see a little check mark on every chapter that you've already watched, and the challenges will show a green background.
Hello and thank you for your reply!
The thing is, all 25 lessons are marked as completed on the sidebar, but the overall completion percentage is 69 :)
Including challenges? The challenges are the buttons below every chapter link
Oh, I see! My side menu was closed, so I didn't notice the challenge icons =) Thanks for the advice!
Woops! I forgot to mention that 😅
Tks for the course!! Really helpful and enjoyable!!
Hey Orlando,
Thanks for your feedback! We're really happy to hear you liked this course and that it was helpful for you :)
Cheers!
Hey Ryan,
Thanks for these fun courses in Symfony 6 :)
Regarding the commands, is there a bundle that would allow commands to be run only once? I'm looking for behavior that's similar to doctrine migrations, where you put the migrations in the
./migrationsdirectory and they get marked as executed in the database. So I would like to do the same for commands and put them in the./tasksdirectory.Currently I work around this by putting them in a
./src/Commands/Task/Rundirectory and naming themTaskYYYYMMDDhhmmss.phpso that the console can "see" them and execute them (and mark it as executed in the database). I'm not sure on how to configure symfony's console in a way that it can pick up the commands from another (custom) directory.So my question, is there an existing bundle which has this kind of behavior or where/how should I start if I want to configure this myself?
Regards,
Yves
Hey Senet,
That's an interesting question. I found this bundle that may fit your needs https://github.com/zenstruck/schedule-bundle/blob/master/doc/run-schedule.md
In case it does not fit your needs. I think you'll have to implement something similar to what Doctrine migrations do. In a database table, you'll have to keep track of all executed commands, and before executing a command, you'll have to check the table. Your naming strategy sounds good to me but keep in mind that you'll need a CRON job to run on your server every minute or so
For registering commands outside of the default directory, you can take advantage of Symfony's auto-configuration feature. You only need to ensure that the new commands directory is not excluded.
Cheers!
"Houston: no signs of life"
Start the conversation!