Symfony 2.7 was released on 30th April 2015 and is the current LTS (Long Term Support) version after the 2.3 version. Maintenance for these versions will end on May 2016 for Symfony 2.3 and May 2018 for Symfony 2.7. Security fixes will be released during one year after end of maintenance for both versions.
As suggested by Massimiliano Arione in the announce comments, what are the changes required to upgrade from Symfony 2.3 from 2.7 without having to check all the minor upgrades (2.3 → 2.4, 2.4 → 2.5, etc.)?
As reminded by Med in a comment, Symfony2 developers have tried to keep backward compatibility in the
2.x
branch. So as long as you don't want to switch to the3.0
branch later, you can ignore the changes between 2.3 and 2.7 because they are mostly deprecation changes.In order to upgrade you app from Symfony 2.3 to Symfony 2.7 you'll have to update your composer.json file:
(
[…]
indicates unchanged code)Old (2.3) version:
New (2.7) version:
Summary:
PSR-4
is used instead ofPSR-0
twig/extensions
is not installed by default, you may need to add it if you use Twig extensionssensio/generator-bundle
is required only indev
environmentscripts
part has been updated"minimum-stability": "stable",
has been removedOnce you have updated your composer.json file, you have to update the dependencies:
Then you may need to flush the cache:
Note: I used the following command in order to get the composer.json files:
(we use
2.3.*
and not2.3
because we want the last version (2.3.31
today) and not the initial release (2.3.0
))The diff is available at GitHub too, but the composer.json file of Symfony 2.3 has been updated multiple times, so it may be different from your file.