Chapters
18 Chapters
|
1:54:58
|
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!
01.
SOLID: The Good, The Bad & The Real World
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": "*",
"composer/package-versions-deprecated": "^1.11", // 1.11.99.1
"doctrine/annotations": "^1.0", // 1.12.1
"doctrine/doctrine-bundle": "^2", // 2.3.1
"doctrine/doctrine-migrations-bundle": "^3", // 3.1.1
"doctrine/orm": "^2", // 2.8.4
"knplabs/knp-time-bundle": "^1.15", // v1.16.0
"phpdocumentor/reflection-docblock": "^5.2", // 5.2.2
"sensio/framework-extra-bundle": "^6.0", // v6.1.2
"symfony/console": "5.2.*", // v5.2.6
"symfony/dotenv": "5.2.*", // v5.2.4
"symfony/flex": "^1.9", // v1.21.6
"symfony/form": "5.2.*", // v5.2.6
"symfony/framework-bundle": "5.2.*", // v5.2.6
"symfony/http-client": "5.2.*", // v5.2.6
"symfony/mailer": "5.2.*", // v5.2.6
"symfony/property-access": "5.2.*", // v5.2.4
"symfony/property-info": "5.2.*", // v5.2.4
"symfony/security-bundle": "5.2.*", // v5.2.6
"symfony/serializer": "5.2.*", // v5.2.4
"symfony/twig-bundle": "5.2.*", // v5.2.4
"symfony/validator": "5.2.*", // v5.2.6
"symfony/webpack-encore-bundle": "^1.6", // v1.11.1
"symfony/yaml": "5.2.*", // v5.2.5
"twig/cssinliner-extra": "^3.3", // v3.3.0
"twig/extra-bundle": "^2.12|^3.0", // v3.3.0
"twig/twig": "^2.12|^3.0" // v3.3.0
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2", // 3.4.0
"fakerphp/faker": "^1.13", // v1.14.1
"symfony/debug-bundle": "^5.2", // v5.2.4
"symfony/maker-bundle": "^1.13", // v1.30.2
"symfony/monolog-bundle": "^3.0", // v3.7.0
"symfony/stopwatch": "^5.2", // v5.2.4
"symfony/var-dumper": "^5.2", // v5.2.6
"symfony/web-profiler-bundle": "^5.2" // v5.2.6
}
}
12 Comments
SALAD :)
I swear I heard SALAD too xD xD but anyways, those guys always makes the topic fun and interesting xD
SOLID and SALAD have one thing in common, both things are good for you :)
I am getting a syntax error when trying to load the database.
I have done the following:
The problem I get is when it tries to insert the data in to the 'user' table. I can't seem to find the file that has the user data or sql commands to insert the data.
Hey @JDCrain
Could you tell me what error did you get? To insert the data you need to load the fixtures (after providing the database). Run
bin/console doctrine:fixtures:load- if you're on Docker runsymfony console doctrine:fixtures:loadCheers!
I am not using Docker but I have tried both 'bin/console' and 'symfony console' and get the same error about executing the 'INSERT INTO' commands.
Here is a screenshot of the output after running the command.
Screen Capture Image
Ohh, I think it is a Postgres thing. Try surrounding the name of the table
userin backticks ( ` ). You'll need to add this to the User entity classOr, if that does not work, try renaming the table to something else. The problem is that
useris a reserved wordCheers!
That worked. I had to change the comment a little since this course is using the 5.2.6 version of Symfony.
I do everything it says on the README.md but when i try to run
symfony console doctrine:database:createi get this error:
In AbstractMySQLDriver.php line 112: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)<br />SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)<br />The Mysql service is running. and when I connect to mysql in my terminal using
mysql -u root -pi don't get any errorsHey @The-cocktail-E
Did you update the database connection environment variable?
DATABASE_URLyou can do so by creating a.env.localfileCheers!
ARM architecture is not working fine with mysql 5.7 but this is the solution.
Run this command on terminal
docker pull --platform linux/x86_64 mysql<br />Update the docker-compose.yaml file like that :
Now run
docker-compose up -dand
Hey @GolemAI
Thank you for sharing it! Cheers!
"Houston: no signs of life"
Start the conversation!