Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddd7f8c
)
Add locales field which will store a copy of kernel.translator.fallbacks
author
Raphaël Gertz
<git@rapsys.eu>
Thu, 1 Feb 2024 03:22:51 +0000
(
04:22
+0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Thu, 1 Feb 2024 03:22:51 +0000
(
04:22
+0100)
DependencyInjection/Configuration.php
patch
|
blob
|
history
diff --git
a/DependencyInjection/Configuration.php
b/DependencyInjection/Configuration.php
index e994ada85fddd58af8fb9947826772f9937ae108..aa71eb7a12ca173d62c007ea10859663994ec252 100644
(file)
--- a/
DependencyInjection/Configuration.php
+++ b/
DependencyInjection/Configuration.php
@@
-71,7
+71,8
@@
class Configuration implements ConfigurationInterface {
'contact' => [
'name' => 'John Doe',
'mail' => 'contact@example.com'
- ]
+ ],
+ 'locales' => '%kernel.translator.fallbacks%'
];
//Here we define the parameters that are allowed to configure the bundle.
@@
-114,6
+115,7
@@
class Configuration implements ConfigurationInterface {
->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
->end()
->end()
+ ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end()
->end()
->end();