Chapters
19 Chapters
|
2:20:12
|
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!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": "^8.0.2",
"ext-ctype": "*",
"ext-iconv": "*",
"babdev/pagerfanta-bundle": "^3.6", // v3.6.1
"composer/package-versions-deprecated": "^1.11", // 1.11.99.5
"doctrine/annotations": "^1.13", // 1.13.2
"doctrine/dbal": "^3.3", // 3.3.5
"doctrine/doctrine-bundle": "^2.0", // 2.6.2
"doctrine/doctrine-migrations-bundle": "^3.2", // 3.2.2
"doctrine/orm": "^2.0", // 2.11.2
"knplabs/knp-markdown-bundle": "^1.8", // 1.10.0
"knplabs/knp-time-bundle": "^1.18", // v1.18.0
"pagerfanta/doctrine-orm-adapter": "^3.6", // v3.6.1
"pagerfanta/twig": "^3.6", // v3.6.1
"sensio/framework-extra-bundle": "^6.0", // v6.2.6
"sentry/sentry-symfony": "^4.0", // 4.2.8
"stof/doctrine-extensions-bundle": "^1.5", // v1.7.0
"symfony/asset": "6.0.*", // v6.0.7
"symfony/console": "6.0.*", // v6.0.7
"symfony/dotenv": "6.0.*", // v6.0.5
"symfony/flex": "^2.1", // v2.1.7
"symfony/form": "6.0.*", // v6.0.7
"symfony/framework-bundle": "6.0.*", // v6.0.7
"symfony/mailer": "6.0.*", // v6.0.5
"symfony/monolog-bundle": "^3.0", // v3.7.1
"symfony/property-access": "6.0.*", // v6.0.7
"symfony/property-info": "6.0.*", // v6.0.7
"symfony/proxy-manager-bridge": "6.0.*", // v6.0.6
"symfony/routing": "6.0.*", // v6.0.5
"symfony/runtime": "6.0.*", // v6.0.7
"symfony/security-bundle": "6.0.*", // v6.0.5
"symfony/serializer": "6.0.*", // v6.0.7
"symfony/stopwatch": "6.0.*", // v6.0.5
"symfony/twig-bundle": "6.0.*", // v6.0.3
"symfony/ux-chartjs": "^2.0", // v2.1.0
"symfony/validator": "6.0.*", // v6.0.7
"symfony/webpack-encore-bundle": "^1.7", // v1.14.0
"symfony/yaml": "6.0.*", // v6.0.3
"symfonycasts/verify-email-bundle": "^1.7", // v1.10.0
"twig/extra-bundle": "^2.12|^3.0", // v3.3.8
"twig/string-extra": "^3.3", // v3.3.5
"twig/twig": "^2.12|^3.0" // v3.3.10
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.4", // 3.4.1
"phpunit/phpunit": "^9.5", // 9.5.20
"rector/rector": "^0.12.17", // 0.12.20
"symfony/debug-bundle": "6.0.*", // v6.0.3
"symfony/maker-bundle": "^1.15", // v1.38.0
"symfony/var-dumper": "6.0.*", // v6.0.6
"symfony/web-profiler-bundle": "6.0.*", // v6.0.6
"zenstruck/foundry": "^1.16" // v1.18.0
}
}
9 Comments
During
composer upget errorHey Mepcuk,
That's unexpected, could you try clearing the cache manually?
rm var/cache/*Cheers!
Hey MolloKhan,
That works, thanks. Only correct command will be
rm -R var/cache/*Right! I forgot about the recursive flag. Anyway, I'm glad to hear that it fixed your problem :)
Hi
When I run compose rup on my main machine (iMac) I get the following message.
The "symfony/flex" plugin (installed globally) was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.2.0"). You may need to run composer update with the "--no-plugins" option.
When first getting in to using flex I must have somehow installed it globally. (I can see /usr/bin/flex and /usr/bin/flex++) not sure if these are the files though
Is there a way to remove flex globally and thus the error?
Thank you
Steve
Hey Steve D.!
Yup - I agree with your assessment! You should be able to remove it by running
composer global remove symfony/flex.Let me know if that does the trick :).
Cheers!
Hi,
Great videos, Ryan.
During a composer recipes:update and getting back the following list:
<br /> [0 ] liip/imagine-bundle<br /> [1 ] stof/doctrine-extensions-bundle<br /> [2 ] symfony/apache-pack<br /> [3 ] symfony/flex<br /> [4 ] symfony/monolog-bundle<br /> [5 ] symfony/phpunit-bridge<br /> [6 ] symfony/routing<br /> [7 ] symfony/security-bundle<br /> [8 ] symfony/swiftmailer-bundle<br /> [9 ] symfony/translation<br /> [10] symfony/validator<br /> [11] symfony/web-profiler-bundle<br /> [12] symfony/webpack-encore-bundle<br />I typed 1 to update stof/doctrine-extensions-bundle
and I get the following error:
`
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Flex\Command\UpdateRecipesCommand::getRecipe() must be an instance of Composer\Package\Package, instance of Composer\Package\CompleteAliasPackage given, called in /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php on line 128 and defined in /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php:265
Stack trace:
#0 /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php(128): Symfony\Flex\Command\UpdateRecipesCommand->getRecipe(Object(Composer\Package\CompleteAliasPackage), '6c1ceb662f89970...', '1.2')
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Symfony\Flex\Command\UpdateRecipesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\ in /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php on line 265
Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Flex\Command\UpdateRecipesCommand::getRecipe() must be an instance of Composer\Package\Package, instance of Composer\Package\CompleteAliasPackage given, called in /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php on line 128 and defined in /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php:265
Stack trace:
#0 /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php(128): Symfony\Flex\Command\UpdateRecipesCommand->getRecipe(Object(Composer\Package\CompleteAliasPackage), '6c1ceb662f89970...', '1.2')
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Symfony\Flex\Command\UpdateRecipesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\ in /private/var/www/www.site.com/vendor/symfony/flex/src/Command/UpdateRecipesCommand.php on line 265
`
composer.json (partial)
`
"require": {
`
It's not just this package, it's also monolog-bundle
Would love your input/suggestions on how to tackle this one.
Thanks,
Kevin
The rector.php file generated is completely different from the one in the tutorial, and also the rector github docs. I guess they updated rector in the meantime?
"Houston: no signs of life"
Start the conversation!