Chapters
20 Chapters
|
1:53:05
|
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!
This tutorial works perfectly with both Symfony 7 & 8!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"php-cs-fixer/shim": "^3.46", // v3.46.0
"phpdocumentor/reflection-docblock": "^5.3", // 5.3.0
"phpstan/phpdoc-parser": "^1.25", // 1.25.0
"symfony/asset": "7.0.*", // v7.0.3
"symfony/asset-mapper": "7.0.*", // v7.0.2
"symfony/console": "7.0.*", // v7.0.2
"symfony/dotenv": "7.0.*", // v7.0.2
"symfony/flex": "^2", // v2.4.3
"symfony/framework-bundle": "7.0.*", // v7.0.2
"symfony/monolog-bundle": "^3.0", // v3.10.0
"symfony/property-access": "7.0.*", // v7.0.0
"symfony/property-info": "7.0.*", // v7.0.0
"symfony/runtime": "7.0.*", // v7.0.0
"symfony/serializer": "7.0.*", // v7.0.2
"symfony/stimulus-bundle": "^2.13", // v2.13.3
"symfony/twig-bundle": "7.0.*", // v7.0.0
"symfony/ux-turbo": "^2.13", // v2.13.2
"symfony/yaml": "7.0.*", // v7.0.0
"symfonycasts/tailwind-bundle": "^0.7.1", // v0.7.1
"twig/extra-bundle": "^2.12|^3.0", // v3.8.0
"twig/twig": "^2.12|^3.0" // v3.8.0
},
"require-dev": {
"symfony/debug-bundle": "7.0.*", // v7.0.0
"symfony/maker-bundle": "^1.52", // v1.53.0
"symfony/stopwatch": "7.0.*", // v7.0.0
"symfony/web-profiler-bundle": "7.0.*" // v7.0.2
}
}
8 Comments
Hello,
When I use git ls-files command it is coming empty. also git ls-files command was not working. I have started the repository with git init command.
is it important?
thank you
root@ubuntu:/var/www/html/LABPractise# git commit
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
nothing added to commit but untracked files present (use "git add" to track)
Hey Mahmut,
The
git ls-filescommand will show you only those files that are committed in your repo. If you just created a new repo withgit init- there're no committed files there. First, you need to add files you want to commit withgit addcommand and then commit changes withgit commit. After you successfully committed the changes - thegit ls-fileswill show you the output.But if you want to see the list of file in the folder (not those files that were committed to your repo) - you can just use
lsUnix command.Cheers!
What was your phpstorm theme again? :D I love how icons for files and classes look
Hey Dragos,
That's not a PhpStorm theme but a plugin, search for "Atom Material Icons" in the marketplace in case you want to have those icons :)
Cheers!
Tried everything i could google or chatgpt. No server is running, no process, deleted log folder. Still getting this error. It still works without "-d" but .... just don't like it that way.
windows 11.
Hey John,
I'm personally not on Windows so it's difficult to suggest a workaround on this. Are you running several Symfony apps at the same time? That might be the reason maybe. I suppose you installed that Symfony CLI going though the official instructions for your OS on this page: https://symfony.com/download - there are a few ways, probably try to remove and reinstall it in a different way, maybe it will be more robust via Scoop if you didn't use that yet.
Well, at least it works without -d - that's already something! And considering it's Windows, I would say you may need to get along with it. Otherwise, please consider Windows WSL where you can install Linux natively on Windows and use Linux for your coding - that would be the best solution for Windows users.
Cheers!
Maybee a little too early - but you mentioned the
/publicdirectory...Today I learned to add a
.htaccessfile into this directory when I want to upload my files to a hosting server. Easy to put in the right place withcomposer require symfony/apache-packSee more: https://symfony.com/packages/Apache Pack
In my case I could't see the Profiler (see video 07) without the .htaccess file.
Hey @skipper-henrik
Thanks for pointing it out. That package handles the
.htaccessfor you, but if you don't want to rely on that file, you can put that configuration inside your Apache virtual host fileCheers!
"Houston: no signs of life"
Start the conversation!