8000 Add an explain section to update symfony recipes · symfony/symfony-docs@fb7fae5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb7fae5

Browse files
committed
Add an explain section to update symfony recipes
1 parent 44988e0 commit fb7fae5

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

setup/upgrade_major.rst

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Now, you can start fixing the notices:
8484
OK (10 tests, 20 assertions)
8585
8686
Remaining deprecation notices (6)
87-
87+
8888
The "request" service is deprecated and will be removed in 3.0. Add a type-hint for
8989
Symfony\Component\HttpFoundation\Request to your controller parameters to retrieve the
9090
request instead: 6x
@@ -178,7 +178,25 @@ Next, use Composer to download new versions of the libraries:
178178

179179
.. _upgrade-major-symfony-after:
180180

181-
3) Update your Code to Work with the New Version
181+
3) Update your Symfony Recipes
182+
------------------------------
183+
184+
Since symfony/flex ``1.6.0``, we have a new command that will help you to update your recipes.
185+
186+
First, list all installed recipes and let's see if some of them are not up to date :
187+
188+
.. code-block:: terminal
189+
190+
$ composer recipes
191+
192+
Next, the previous command recommends two options to go further :
193+
194+
.. code-block:: terminal
195+
196+
$ composer recipes vendor/package # to see details and history about a recipe
197+
$ composer recipes:install vendor/package --force -v # to update that recipe
198+
199+
4) Update your Code to Work with the New Version
182200
------------------------------------------------
183201

184202
In some rare situations, the next major version *may* contain backwards-compatibility

0 commit comments

Comments
 (0)
0