X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/2f0ee1d8679c0a5de721520a4cc05de72aae9db3..15c15d969c9161e0a10515ff91857e687ab6f60a:/DependencyInjection/Configuration.php?ds=inline diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 1dc5166..22c34f0 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -69,13 +69,12 @@ class Configuration implements ConfigurationInterface { ] ], 'translate' => [], - 'locales' => '%kernel.translator.fallbacks%', 'languages' => [ 'en_gb' => 'English' ], 'contact' => [ - 'title' => 'John Doe', - 'mail' => 'contact@example.com' + 'address' => 'contact@example.com', + 'name' => 'John Doe' ], 'context' => [], 'edit' => [ @@ -229,8 +228,6 @@ class Configuration implements ConfigurationInterface { ->scalarPrototype()->end() ->end() #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false) - ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end() - #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false) ->arrayNode('languages') ->treatNullLike([]) ->defaultValue($defaults['languages']) @@ -239,8 +236,8 @@ class Configuration implements ConfigurationInterface { ->arrayNode('contact') ->addDefaultsIfNotSet() ->children() - ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['contact']['title'])->end() - ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end() + ->scalarNode('address')->cannotBeEmpty()->defaultValue($defaults['contact']['address'])->end() + ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end() ->end() ->end() ->arrayNode('context')