-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was squashed before being merged into the main branch. Discussion ---------- Use `app.` prefix for `parameters` I changed the `locale` setting to put the `app.` prefix in order to follow best practices. https://symfony.com/doc/current/best_practices.html#use-short-and-prefixed-parameter-names : > Consider using app. as the prefix of your [parameters](https://symfony.com/doc/current/configuration.html#configuration-parameters) to avoid collisions with Symfony and third-party bundles/libraries parameters. Then, use just one or two words to describe the purpose of the parameter Commits ------- 032214e Use `app.` prefix for `parameters`
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# Put parameters here that don't need to change on each machine where the app is deployed | ||
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration | ||
parameters: | ||
locale: 'en' | ||
app.locale: 'en' | ||
app.notifications.email_sender: [email protected] | ||
|
||
services: | ||
|
@@ -17,7 +17,7 @@ services: | |
# defined/created in this file; if some argument is used rarely, instead of defining | ||
# it here you can use the #[Autowire] attribute to inject it manually in the service constructor | ||
array $enabledLocales: '%kernel.enabled_locales%' | ||
string $defaultLocale: '%locale%' | ||
string $defaultLocale: '%app.locale%' | ||
|
||
# makes classes in src/ available to be used as services | ||
# this creates a service per class whose id is the fully-qualified class name | ||
|