Skip to content

Commit 19e1ec7

Browse files
BenMorelOskarStark
authored andcommitted
Fix versions in Upgrading Major Version
1 parent 56833c7 commit 19e1ec7

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

setup/upgrade_major.rst

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -135,46 +135,34 @@ starting with ``symfony/`` to the new major version:
135135
"...": "...",
136136
137137
"require": {
138-
- "symfony/cache": "4.3.*",
139-
+ "symfony/cache": "4.4.*",
140-
- "symfony/config": "4.3.*",
141-
+ "symfony/config": "4.4.*",
142-
- "symfony/console": "4.3.*",
143-
+ "symfony/console": "4.4.*",
138+
- "symfony/cache": "4.4.*",
139+
+ "symfony/cache": "5.0.*",
140+
- "symfony/config": "4.4.*",
141+
+ "symfony/config": "5.0.*",
142+
- "symfony/console": "4.4.*",
143+
+ "symfony/console": "5.0.*",
144144
"...": "...",
145145
146146
"...": "A few libraries starting with
147-
symfony/ follow their versioning scheme. You
147+
symfony/ follow their own versioning scheme. You
148148
do not need to update these versions: you can
149149
upgrade them independently whenever you want",
150150
"symfony/monolog-bundle": "^3.5",
151151
},
152152
"...": "...",
153153
}
154154
155-
Your ``composer.json`` file should also have an ``extra`` block that you will
156-
*also* need to update:
157-
158-
.. code-block:: diff
159-
160-
"extra": {
161-
"symfony": {
162-
"...": "...",
163-
- "require": "4.4.*"
164-
+ "require": "5.0.*"
165-
}
166-
}
167-
168155
At the bottom of your ``composer.json`` file, in the ``extra`` block you can
169156
find a data setting for the Symfony version. Make sure to also upgrade
170157
this one. For instance, update it to ``5.0.*`` to upgrade to Symfony 5.0:
171158

172-
.. code-block:: json
159+
.. code-block:: diff
173160
174161
"extra": {
175162
"symfony": {
176163
"allow-contrib": false,
177-
"require": "5.0.*"
164+
- "require": "4.4.*"
165+
+ "require": "5.0.*"
178166
}
179167
}
180168

0 commit comments

Comments
 (0)