X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/4bee264432b21f4798ab6f660abc99287890261a..34d5b979dc34fbbd89e3f321024a1a79718d0e6e:/DependencyInjection/Configuration.php 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()