Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite0178c1

Browse files
committed
minor#20208 [Setup] feat: add section aboutcomposer extra.symfony.require … (alexislefebvre)
This PR was squashed before being merged into the 6.4 branch.Discussion----------[Setup] feat: add section about `composer extra.symfony.require …`I don't know where to put it, please let me know if it would fit better elsewhere.Fixes#20195-#20195Commits-------7232f8c [Setup] feat: add section about `composer extra.symfony.require …`
2 parentsc9ad945 +7232f8c commite0178c1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎setup.rst‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,19 @@ 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+
284297
The Symfony Demo application
285298
----------------------------
286299

@@ -315,6 +328,8 @@ Learn More
315328
.. _`Install Composer`:https://getcomposer.org/download/
316329
.. _`install the Symfony CLI`:https://symfony.com/download
317330
.. _`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
318333
.. _`The Symfony Demo Application`:https://github.com/symfony/demo
319334
.. _`Symfony Flex`:https://github.com/symfony/flex
320335
.. _`PHP security advisories database`:https://github.com/FriendsOfPHP/security-advisories

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp