X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/d61258e1f2fc3ab57e5535f27cdf75c138f70813..34d5b979dc34fbbd89e3f321024a1a79718d0e6e:/DependencyInjection/Configuration.php?ds=sidebyside diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 63ba75f..81ec927 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -51,6 +51,11 @@ class Configuration implements ConfigurationInterface { 'context' => [] ] ], + 'translate' => [], + 'locales' => '%kernel.translator.fallbacks%', + 'languages' => [ + 'en' => 'English' + ], 'contact' => [ 'name' => 'John Doe', 'mail' => 'contact@example.com' @@ -198,6 +203,17 @@ class Configuration implements ConfigurationInterface { ->end() ->end() ->end() + ->arrayNode('translate') + ->treatNullLike(array()) + ->defaultValue($defaults['translate']) + ->scalarPrototype()->end() + ->end() + ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end() + ->arrayNode('languages') + ->treatNullLike([]) + ->defaultValue($defaults['languages']) + ->scalarPrototype()->end() + ->end() ->arrayNode('contact') ->addDefaultsIfNotSet() ->children()