@@ -9,30 +9,25 @@ it's a good idea to keep your files in sync with the recipes.
99Symfony Flex provides several commands to help upgrade your recipes. Be sure to
1010commit any unrelated changes you' re working on before starting :
1111
12- .. versionadded:: 1.6
12+ .. versionadded:: 1 .18
1313
14- The recipes commands were introduced in Symfony Flex 1.6 .
14+ The `` recipes : update`` command was introduced in Symfony Flex 1 .18 .
1515
1616.. code- block:: terminal
1717
18+ # choose an outdated recipe to update
19+ $ composer recipes : update
20+
21+ # update a specific recipe
22+ $ composer recipes : update symfony/ framework- bundle
23+
1824 # see a list of all installed recipes and which have updates available
1925 $ composer recipes
2026
2127 # see detailed information about a specific recipes
2228 $ composer recipes symfony/ framework- bundle
2329
24- # update a specific recipes
25- $ composer recipes:install symfony/framework-bundle --force -v
26-
27- The tricky part of this process is that the recipe " update" does not perform
28- any intelligent " upgrading" of your code. Instead, **the updates process re-installs
29- the latest version of the recipe** which means that **your custom code will be
30- overridden completely**. After updating a recipe, you need to carefully choose
31- which changes you want, and undo the rest.
32-
33- .. admonition:: Screencast
34- :class : screencast
35-
36- For a detailed example, see the `SymfonyCasts Symfony 5 Upgrade Tutorial`_.
37-
38- .. _`SymfonyCasts Symfony 5 Upgrade Tutorial`: https:// symfonycasts.com/screencast/symfony5-upgrade
30+ The ``recipes : update`` command is smart : it looks at the difference between the
31+ recipe when you installed it and the latest version. It then creates a patch and
32+ applies it to your app. If there are any conflicts, you can resolve them like a
33+ normal ``git`` conflict and commit like normal.
0 commit comments