How to find out which Symfony version you have and update

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 812078
    • Gender:Male
  • point d’amour
How to find out which Symphony version you have

1. Use
Code: [Select]
php bin/console --version
2. Use
Code: [Select]
php bin/console about
3. Go to
Code: [Select]
vendor/symfony/http-kernel/Kernel.php
And search for

Code: [Select]
const VERSION
Upgrade symfony

Upgrade a Major Version (e.g. 4.4.0 to 5.0.0)
https://symfony.com/doc/current/setup/upgrade_major.html

Upgrade a Minor Version (e.g. 4.0.0 to 4.1.0)
Code: [Select]
composer update "symfony/*"https://symfony.com/doc/current/setup/upgrade_minor.html

Upgrade a Patch Version (e.g. 5.0.0 to 5.0.1)
Code: [Select]
composer updateBeware, if you have some unspecific version constraints in your composer.json (e.g. dev-master), this could upgrade some non-Symfony libraries to new versions that contain backwards-compatibility breaking changes.
https://symfony.com/doc/current/setup/upgrade_patch.html

Screencast
https://symfonycasts.com/screencast/symfony5-upgrade/upgrade-4.4
« Last Edit: 05 Jun, 2020, 18:59:10 by spiros »


 

Search Tools