Skip to content

Commit 3de3635

Browse files
committed
minor #12671 #12633 Update "upgrading" guide for Symfony5 (Thomas Berends)
This PR was squashed before being merged into the 4.4 branch (closes #12671). Discussion ---------- #12633 Update "upgrading" guide for Symfony5 Fixed #12633 #SymfonyHackday Commits ------- b16c96f #12633 Update \"upgrading\" guide for Symfony5
2 parents 7f1d7d6 + b16c96f commit 3de3635

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

setup/upgrade_major.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ done!
124124
-----------------------------------------------
125125

126126
Once your code is deprecation free, you can update all the Symfony packages via
127-
Composer by modifying your ``composer.json`` file:
127+
Composer by modifying your ``composer.json`` file. In this file update all
128+
mentions of ``4.*`` to ``5.0.*``:
128129

129130
.. code-block:: json
130131
@@ -134,6 +135,7 @@ Composer by modifying your ``composer.json`` file:
134135
"require": {
135136
"symfony/console": "^5.0",
136137
"symfony/dotenv": "^5.0",
138+
"symfony/flex": "^1.3.1",
137139
"symfony/framework-bundle": "^5.0",
138140
"symfony/validator": "^5.0",
139141
"symfony/yaml": "^5.0"
@@ -145,6 +147,19 @@ At the bottom of your ``composer.json`` file, in the ``extra`` block you can
145147
find a data setting for the symfony version. Make sure to also upgrade
146148
this one. For instance, update it to ``5.0.*`` to upgrade to Symfony 5.0:
147149

150+
.. code-block:: json
151+
152+
"extra": {
153+
"symfony": {
154+
"allow-contrib": false,
155+
"require": "5.0.*"
156+
}
157+
}
158+
159+
At the bottom of your ``composer.json`` file, in the ``extra`` block you can
160+
find a data setting for the symfony version. Make sure to also upgrade
161+
this one. For instance, update it to ``5.0.*`` to upgrade to Symfony 5.0:
162+
148163
.. code-block:: json
149164
150165
"extra": {
@@ -173,4 +188,3 @@ The next major version *may* also contain new BC breaks as a BC layer is not alw
173188
a possibility. Make sure you read the ``UPGRADE-X.0.md`` (where X is the new major
174189
version) included in the Symfony repository for any BC break that you need to be aware
175190
of.
176-

0 commit comments

Comments
 (0)