Skip to content

Fix versions in Upgrading Major Version #13029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 10 additions & 22 deletions setup/upgrade_major.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,46 +135,34 @@ starting with ``symfony/`` to the new major version:
"...": "...",

"require": {
- "symfony/cache": "4.3.*",
+ "symfony/cache": "4.4.*",
- "symfony/config": "4.3.*",
+ "symfony/config": "4.4.*",
- "symfony/console": "4.3.*",
+ "symfony/console": "4.4.*",
- "symfony/cache": "4.4.*",
+ "symfony/cache": "5.0.*",
- "symfony/config": "4.4.*",
+ "symfony/config": "5.0.*",
- "symfony/console": "4.4.*",
+ "symfony/console": "5.0.*",
"...": "...",

"...": "A few libraries starting with
symfony/ follow their versioning scheme. You
symfony/ follow their own versioning scheme. You
do not need to update these versions: you can
upgrade them independently whenever you want",
"symfony/monolog-bundle": "^3.5",
},
"...": "...",
}

Your ``composer.json`` file should also have an ``extra`` block that you will
*also* need to update:

.. code-block:: diff

"extra": {
"symfony": {
"...": "...",
- "require": "4.4.*"
+ "require": "5.0.*"
}
}

At the bottom of your ``composer.json`` file, in the ``extra`` block you can
find a data setting for the Symfony version. Make sure to also upgrade
this one. For instance, update it to ``5.0.*`` to upgrade to Symfony 5.0:

.. code-block:: json
.. code-block:: diff

"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.0.*"
- "require": "4.4.*"
+ "require": "5.0.*"
}
}

Expand Down