Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Remove mentions of XML and Config Builders in Getting started guides#21516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
javiereguiluz merged 1 commit intosymfony:7.4fromwouterj:issue-21461/routing-di-xml-deprecationOct 28, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
96 changes: 13 additions & 83 deletionsconfiguration.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -53,7 +53,7 @@ Configuration Formats | ||
| ~~~~~~~~~~~~~~~~~~~~~ | ||
| Unlike other frameworks, Symfony doesn't impose a specific format on you to | ||
| configure your applications, but lets you choose between YAML and PHP. | ||
| Throughout the Symfony documentation, all configuration examples will be | ||
| shown in these three formats. | ||
| @@ -66,20 +66,18 @@ readable. These are the main advantages and disadvantages of each format: | ||
| * **YAML**: simple, clean and readable, but not all IDEs support autocompletion | ||
| and validation for it. :doc:`Learn the YAML syntax </reference/formats/yaml>`; | ||
wouterj marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| * **PHP**: very powerful and it allows you to create dynamic configuration with | ||
| arrays, and benefits from auto completion and static analysis using | ||
| array shapes. | ||
| .. deprecated:: 7.4 | ||
| The XML and Config Builder formats are deprecated in Symfony 7.4 and | ||
| will be removed in Symfony 8.0. | ||
| .. versionadded:: 7.4 | ||
| Array shapes were introduced in Symfony 7.4. | ||
| Importing Configuration Files | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| @@ -100,9 +98,9 @@ configuration files, even if they use a different format: | ||
| - { resource: '/etc/myapp/*.yaml' } | ||
| # ignore_errors: not_found silently discards errors if the loaded file doesn't exist | ||
| - { resource: 'my_config_file.php', ignore_errors: not_found } | ||
| # ignore_errors: true silently discards all errors (including invalid code and not found) | ||
| - { resource: 'my_other_config_file.php', ignore_errors: true } | ||
| # ... | ||
| @@ -267,27 +265,6 @@ reusable configuration value. By convention, parameters are defined under the | ||
| // ... | ||
| Once defined, you can reference this parameter value from any other | ||
| configuration file using a special syntax: wrap the parameter name in two ``%`` | ||
| (e.g. ``%app.admin_email%``): | ||
| @@ -331,7 +308,7 @@ configuration file using a special syntax: wrap the parameter name in two ``%`` | ||
| 'email_address' => param('app.admin_email'), | ||
| // ... but if you prefer it, you can also pass the name as a string | ||
| // surrounded by two % (same as intheYAMLformat) and Symfony will | ||
| // replace it by that parameter value | ||
| 'email_address' => '%app.admin_email%', | ||
| ]); | ||
| @@ -1302,52 +1279,6 @@ parameters at once by type-hinting any of its constructor arguments with the | ||
| } | ||
| } | ||
| Keep Going! | ||
| ----------- | ||
| @@ -1369,7 +1300,6 @@ And all the other topics related to configuration: | ||
| configuration/* | ||
| .. _`environment variables`: https://en.wikipedia.org/wiki/Environment_variable | ||
| .. _`symbolic links`: https://en.wikipedia.org/wiki/Symbolic_link | ||
| .. _`utilities to manage env vars`: https://symfony.com/doc/current/cloud/env.html | ||
2 changes: 1 addition & 1 deletionpage_creation.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletionsquick_tour/the_architecture.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletionsrouting.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletionsservice_container.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.