Chapters
29 Chapters
|
3:14:24
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: ^7.1.3
Subscribe to download the code!Compatible PHP versions: ^7.1.3
-
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!
21.
Upgrading to Symfony 5.0
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": "^7.3.0",
"ext-iconv": "*",
"antishov/doctrine-extensions-bundle": "^1.4", // v1.4.2
"aws/aws-sdk-php": "^3.87", // 3.110.11
"composer/package-versions-deprecated": "^1.11", // 1.11.99
"doctrine/annotations": "^1.0", // 1.10.1
"doctrine/doctrine-bundle": "^2.0", // 2.0.6
"doctrine/doctrine-migrations-bundle": "^1.3|^2.0", // 2.1.2
"doctrine/orm": "^2.5.11", // v2.7.2
"doctrine/persistence": "^1.3.7", // 1.3.8
"easycorp/easy-log-handler": "^1.0", // v1.0.9
"http-interop/http-factory-guzzle": "^1.0", // 1.0.0
"knplabs/knp-markdown-bundle": "^1.7", // 1.8.1
"knplabs/knp-paginator-bundle": "^5.0", // v5.0.0
"knplabs/knp-snappy-bundle": "^1.6", // v1.7.0
"knplabs/knp-time-bundle": "^1.8", // v1.11.0
"league/flysystem-aws-s3-v3": "^1.0", // 1.0.23
"league/flysystem-cached-adapter": "^1.0", // 1.0.9
"league/html-to-markdown": "^4.8", // 4.8.2
"liip/imagine-bundle": "^2.1", // 2.3.0
"nexylan/slack-bundle": "^2.1", // v2.2.1
"oneup/flysystem-bundle": "^3.0", // 3.3.0
"php-http/guzzle6-adapter": "^2.0", // v2.0.1
"phpdocumentor/reflection-docblock": "^3.0|^4.0", // 4.3.4
"sensio/framework-extra-bundle": "^5.1", // v5.5.3
"symfony/asset": "5.0.*", // v5.0.2
"symfony/console": "5.0.*", // v5.0.2
"symfony/dotenv": "5.0.*", // v5.0.2
"symfony/flex": "^1.0", // v1.21.6
"symfony/form": "5.0.*", // v5.0.2
"symfony/framework-bundle": "5.0.*", // v5.0.2
"symfony/mailer": "5.0.*", // v5.0.2
"symfony/messenger": "5.0.*", // v5.0.2
"symfony/monolog-bundle": "^3.5", // v3.5.0
"symfony/property-access": "4.4.*|5.0.*", // v5.0.2
"symfony/property-info": "4.4.*|5.0.*", // v5.0.2
"symfony/security-bundle": "5.0.*", // v5.0.2
"symfony/sendgrid-mailer": "5.0.*", // v5.0.2
"symfony/serializer": "4.4.*|5.0.*", // v5.0.2
"symfony/twig-bundle": "5.0.*", // v5.0.2
"symfony/validator": "5.0.*", // v5.0.2
"symfony/webpack-encore-bundle": "^1.4", // v1.7.2
"symfony/yaml": "5.0.*", // v5.0.2
"twig/cssinliner-extra": "^2.12", // v2.12.0
"twig/extensions": "^1.5", // v1.5.4
"twig/extra-bundle": "^2.12|^3.0", // v3.0.1
"twig/inky-extra": "^2.12", // v2.12.0
"twig/twig": "^2.12|^3.0" // v2.14.4
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.0", // 3.3.0
"fzaninotto/faker": "^1.7", // v1.8.0
"symfony/browser-kit": "5.0.*", // v5.0.2
"symfony/debug-bundle": "5.0.*", // v5.0.2
"symfony/maker-bundle": "^1.0", // v1.14.3
"symfony/phpunit-bridge": "5.0.*", // v5.0.2
"symfony/stopwatch": "4.4.*|5.0.*", // v5.0.2
"symfony/var-dumper": "5.0.*", // v5.0.2
"symfony/web-profiler-bundle": "4.4.*|5.0.*" // v5.0.2
}
}
13 Comments
I can't use the symfony/* syntax, it tells me
I can follow along just fine with running the whole composer update, just curious why it doesn't work for me when it works for you =)
Hey Mattias,
Ah, yes, this command may cause an error in ZSH, it's because of that * char, but you just need to wrap that string with quotes - easy fix ;) In short, just try this command instead:
$ composer update "symfony/*"
P.S. Btw notice that we have those quotes in the scripts ;)
Cheers!
Hi. After upgrating to symfony 5, but when acccessing to an article details (/news/{slug}), i have the following error :
"No PSR-17 request factory found. Install a package from this list: https://packagist.org/provi...."
I tried to install some PSR-17 implementations from packagist but didn't fix it.
If i remove SlackClient $slack param from the show method, the error desapear.
How can i fix it without removing the SlackClient $slack param..
Thank you in advance.
Hey Boubacar S.
I don't really know why it asks for a "request factory" but if you install the package "nyholm/psr7" it should work. If it doesn't, please let us know
Cheers!
Thank you . After installing "nyholm/psr7" it works perfectly .
Hey Boubacar S.!
Awesome! Thanks for letting us know. We talk a bit more about this in the last chapter - https://symfonycasts.com/sc... - basically one of our "transitive dependencies" (nexylan/slack) gets bumped up a major version (from 2 to 3) and this has some BC breaks (specifically, that you need an external library for it to work).
Cheers!
So, I'm in the process of upgrading a Symfony 4.4 and wondering if I should upgrade to 5.0 first, than to 5.1, to 5.2, to 5.3 and finally 5.4 or just upgrade to 5.4 at once?
hey odds
If you don't have any deprecated errors, then it will be good to upgrade 4.4 -> 5.4
Cheers!
Hi. I am trying to update Symfony to 5 version and have error:
zenstruck/redirect-bundle v3.3.1 requires symfony/framework-bundle ^2.8|^3.0|^4.0 -> satisfiable by symfony/framework-bundle[v4.4.2] but these conflict with your requirements or minimum-stability
zenstruck/redirect-bundle has no support yet Symfony 5.
How can I skip updating this package and continue updating Symfony without it?
Hey Dmitriy
No you can't skip it, you can wait for support(better will be to ping author or make a PR to add support) or find another library which support Symfony 5
Cheers!
Hi Ryan (andeverybody)
I have a problem with upgrading a third bundle BackupManager in Symfony5
https://github.com/backup-m...
In its changelog file it seems to have support for Symfony5.0 in its version 2.3.0. When I run
composer require backup-manager/symfony
I get this message:
Problem 1
- backup-manager/backup-manager 1.4.1 requires symfony/process ^2.1 || ^3.0 || ^4 -> no matching package found.
- backup-manager/backup-manager 1.4 requires symfony/process ^2.1 || ^3.0 || ^4.0 -> no matching package found.
- backup-manager/backup-manager 1.3.0 requires symfony/process ^2.1 || ^3.0 || ^4.0 -> no matching package found.
- backup-manager/symfony 2.3.0 requires backup-manager/backup-manager ^1.3 -> satisfiable by backup-manager/backup-manager[1.3.0, 1.4, 1.4.1].
- Installation request for backup-manager/symfony ^2.3 -> satisfiable by backup-manager/symfony[2.3.0].
But I have installed (updated) symfony/process in version 5.0.*. I have created an issue in author's bundle github page but ... Anyone does it has any idea? Where can it be the problem?
Thanks
Francisco
Hi Francisco C.
If you try to dig this error you can find that
backup-manager/backup-managerrequiressymfony/process ^2.1 || ^3.0 || ^4so it cannot be installed in you project. So need to wait whilebackup-manager/backup-managerwill be updatedCheers!
I thought what its release 2.3.0 named Symfony5 support covered this. I will hope then. Thanks
"Houston: no signs of life"
Start the conversation!