X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/63007e56ff35e6e620c35586e87373577491f384..27b3855d43880ba40d38a955149e11c85127ae16:/DependencyInjection/Configuration.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 4e20178..8434833 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -65,14 +65,16 @@ class Configuration implements ConfigurationInterface { 'url' => 'rapsys_air' ], 'copy' => [ - 'long' => 'John Doe all rights reserved', + 'long' => 'All rights reserved', 'short' => 'Copyright 2019' ], 'contact' => [ 'name' => 'John Doe', 'mail' => 'contact@example.com' ], - 'locales' => '%kernel.translator.fallbacks%' + 'locale' => '%kernel.default_locale%', + 'locales' => '%kernel.translator.fallbacks%', + 'languages' => '%rapsys_user.languages%', ]; //Here we define the parameters that are allowed to configure the bundle. @@ -115,7 +117,9 @@ class Configuration implements ConfigurationInterface { ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end() ->end() ->end() + ->scalarNode('locale')->cannotBeEmpty()->defaultValue($defaults['locale'])->end() ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end() + ->scalarNode('languages')->cannotBeEmpty()->defaultValue($defaults['languages'])->end() ->end() ->end();