@@ -91,43 +91,7 @@ These documents can also be found in the `Symfony Repository`_.
9191
9292.. _updating-flex-recipes :
9393
94- 3) Updating Recipes
95- -------------------
96-
97- Over time - and especially when you upgrade to a new version of a library - an
98- updated version of the :ref: `recipe <recipes-description >` may be available.
99- These updates are usually minor - e.g. new comments in a configuration file - but
100- it's a good idea to update the core Symfony recipes.
101-
102- Symfony Flex provides several commands to help upgrade your recipes. Be sure to
103- commit any unrelated changes you're working on before starting:
104-
105- .. versionadded :: 1.6
106-
107- The recipes commands were introduced in Symfony Flex 1.6.
108-
109- .. code-block :: terminal
110-
111- # see a list of all installed recipes and which have updates available
112- $ composer recipes
113-
114- # see detailed information about a specific recipes
115- $ composer recipes symfony/framework-bundle
116-
117- # update a specific recipes
118- $ composer recipes:install symfony/framework-bundle --force -v
119-
120- The tricky part of this process is that the recipe "update" does not perform
121- any intelligent "upgrading" of your code. Instead, **the updates process re-installs
122- the latest version of the recipe ** which means that **your custom code will be
123- overridden completely **. After updating a recipe, you need to carefully choose
124- which changes you want, and undo the rest.
125-
126- .. admonition :: Screencast
127- :class: screencast
128-
129- For a detailed example, see the `SymfonyCasts Symfony 5 Upgrade Tutorial `_.
94+ .. include :: /setup/_update_recipes.rst.inc
13095
13196.. _`Symfony Repository` : https://github.com/symfony/symfony
13297.. _`UPGRADE-4.4.md` : https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.4.md
133- .. _`SymfonyCasts Symfony 5 Upgrade Tutorial` : https://symfonycasts.com/screencast/symfony5-upgrade
0 commit comments