File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -124,24 +124,41 @@ done!
124
124
-----------------------------------------------
125
125
126
126
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.* ``.
128
129
129
130
.. code-block :: json
130
131
131
132
{
132
133
"..." : " ..." ,
133
134
134
135
"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.*"
136
140
},
137
141
"..." : " ..."
138
142
}
139
143
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
+
140
157
Next, use Composer to download new versions of the libraries:
141
158
142
159
.. code-block :: terminal
143
160
144
- $ composer update symfony/symfony
161
+ $ composer update symfony/*
145
162
146
163
.. include :: /setup/_update_dep_errors.rst.inc
147
164
You can’t perform that action at this time.
0 commit comments