Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 644ac22

Browse filesBrowse files
committed
Move the new contents
1 parent e0178c1 commit 644ac22
Copy full SHA for 644ac22

File tree

Expand file treeCollapse file tree

2 files changed

+31
-24
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+31
-24
lines changed

‎setup.rst

Copy file name to clipboardExpand all lines: setup.rst
-15Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -281,19 +281,6 @@ create new projects. If you use Composer, you need to tell the exact version:
281281
282282
$ composer create-project symfony/skeleton:"6.4.*" my_project_directory
283283
284-
With an already existing project, you can restrict Symfony packages to one
285-
specific version by :doc:`using Symfony Flex in your project </setup/flex>`
286-
and setting the ``extra.symfony.require`` config:
287-
288-
.. code-block:: terminal
289-
290-
$ composer config extra.symfony.require "6.4.*"
291-
292-
.. warning::
293-
294-
Tools like `dependabot`_ may ignore this setting and upgrade the Symfony dependencies,
295-
see this `GitHub issue about dependabot`_.
296-
297284
The Symfony Demo application
298285
----------------------------
299286

@@ -328,8 +315,6 @@ Learn More
328315
.. _`Install Composer`: https://getcomposer.org/download/
329316
.. _`install the Symfony CLI`: https://symfony.com/download
330317
.. _`symfony-cli/symfony-cli GitHub repository`: https://github.com/symfony-cli/symfony-cli
331-
.. _`dependabot`: https://docs.github.com/en/code-security/dependabot
332-
.. _`GitHub issue about dependabot`: https://github.com/dependabot/dependabot-core/issues/4631
333318
.. _`The Symfony Demo Application`: https://github.com/symfony/demo
334319
.. _`Symfony Flex`: https://github.com/symfony/flex
335320
.. _`PHP security advisories database`: https://github.com/FriendsOfPHP/security-advisories

‎setup/upgrade_major.rst

Copy file name to clipboardExpand all lines: setup/upgrade_major.rst
+31-9Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,40 @@ starting with ``symfony/`` to the new major version:
162162
"...": "...",
163163
}
164164
165-
At the bottom of your ``composer.json`` file, in the ``extra`` block you can
166-
find a data setting for the Symfony version. Make sure to also upgrade
167-
this one. For instance, update it to ``6.0.*`` to upgrade to Symfony 6.0:
165+
A more efficient way to handle Symfony dependency updates is by setting the
166+
``extra.symfony.require`` configuration option in your ``composer.json`` file.
167+
In Symfony applications using :doc:`Symfony Flex </setup/flex>`, this setting
168+
restricts Symfony packages to a single specific version, improving both
169+
dependency management and Composer update performance:
168170

169171
.. code-block:: diff
170172
171-
"extra": {
172-
"symfony": {
173-
"allow-contrib": false,
174-
- "require": "5.4.*"
175-
+ "require": "6.0.*"
176-
}
173+
{
174+
"...": "...",
175+
176+
"require": {
177+
- "symfony/cache": "6.0.*",
178+
+ "symfony/cache": "*",
179+
- "symfony/config": "6.0.*",
180+
+ "symfony/config": "*",
181+
- "symfony/console": "6.0.*",
182+
+ "symfony/console": "*",
183+
"...": "...",
184+
},
185+
"...": "...",
186+
187+
+ "extra": {
188+
+ "symfony": {
189+
+ "require": "6.0.*"
190+
+ }
191+
+ }
177192
}
178193
194+
.. warning::
195+
196+
Tools like `dependabot`_ may ignore this setting and upgrade Symfony
197+
dependencies. For more details, see this `GitHub issue about dependabot`_.
198+
179199
.. tip::
180200

181201
If a more recent minor version is available (e.g. ``6.4``) you can use that
@@ -338,3 +358,5 @@ Classes in the ``vendor/`` directory are always ignored.
338358
.. _`PHP CS Fixer`: https://github.com/friendsofphp/php-cs-fixer
339359
.. _`Rector`: https://github.com/rectorphp/rector
340360
.. _`maintained Symfony versions`: https://symfony.com/releases
361+
.. _`dependabot`: https://docs.github.com/en/code-security/dependabot
362+
.. _`GitHub issue about dependabot`: https://github.com/dependabot/dependabot-core/issues/4631

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.