@@ -9,30 +9,25 @@ it's a good idea to keep your files in sync with the recipes.
9
9
Symfony Flex provides several commands to help upgrade your recipes. Be sure to
10
10
commit any unrelated changes you' re working on before starting :
11
11
12
- .. versionadded:: 1.6
12
+ .. versionadded:: 1 .18
13
13
14
- The recipes commands were introduced in Symfony Flex 1.6 .
14
+ The `` recipes : update`` command was introduced in Symfony Flex 1 .18 .
15
15
16
16
.. code- block:: terminal
17
17
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
+
18
24
# see a list of all installed recipes and which have updates available
19
25
$ composer recipes
20
26
21
27
# see detailed information about a specific recipes
22
28
$ composer recipes symfony/ framework- bundle
23
29
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