Skip to content

Commit d8e5400

Browse files
author
Thomas Berends
committed
Replaced composer.json with updated content
1 parent 8470255 commit d8e5400

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

setup/upgrade_major.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,24 +124,41 @@ done!
124124
-----------------------------------------------
125125

126126
Once your code is deprecation free, you can update the Symfony library 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.4.*`` to ``5.0.*``.
128129

129130
.. code-block:: json
130131
131132
{
132133
"...": "...",
133134
134135
"require": {
135-
"symfony/symfony": "^4.1",
136+
"symfony/asset": "5.0.*",
137+
"symfony/flex": "^1.3.1",
138+
"symfony/mailer": "5.0.*",
139+
"symfony/yaml": "5.0.*"
136140
},
137141
"...": "..."
138142
}
139143
144+
At the bottom of your ``composer.json`` file, in the ``extra`` block you can
145+
find a data setting for the symfony version. Make sure to also upgrade
146+
this one. For instance, update it to ``5.0.*`` to upgrade to Symfony 5.0:
147+
148+
.. code-block:: json
149+
150+
"extra": {
151+
"symfony": {
152+
"allow-contrib": false,
153+
"require": "5.0.*"
154+
}
155+
}
156+
140157
Next, use Composer to download new versions of the libraries:
141158

142159
.. code-block:: terminal
143160
144-
$ composer update symfony/symfony
161+
$ composer update symfony/*
145162
146163
.. include:: /setup/_update_dep_errors.rst.inc
147164

0 commit comments

Comments
 (0)