]> Raphaƫl G. Git Repositories - airbundle/blobdiff - DependencyInjection/Configuration.php
Protect from infinite remove recursion
[airbundle] / DependencyInjection / Configuration.php
index c556d1e456400d5dd1461d18d1f3a6951f705def..d7f0adb37844f7cf7867cad569ddc3e533ba16f5 100644 (file)
@@ -74,12 +74,10 @@ class Configuration implements ConfigurationInterface {
                                'title' => 'Libre Air',
                                'url' => 'rapsys_air'
                        ],
                                'title' => 'Libre Air',
                                'url' => 'rapsys_air'
                        ],
-                       'calendar' => [
-                               'calendar' => '%env(string:RAPSYSAIR_CALENDAR)',
-                               'prefix' => '%env(string:RAPSYSAIR_PREFIX)',
-                               'project' => '%env(string:RAPSYSAIR_PROJECT)',
-                               'client' => '%env(string:GOOGLE_CLIENT_ID)',
-                               'secret' => '%env(string:GOOGLE_CLIENT_SECRET)'
+                       'google' => [
+                               'client' => '%env(string:GOOGLE_CLIENT)',
+                               'project' => '%env(string:GOOGLE_PROJECT)',
+                               'secret' => '%env(string:GOOGLE_SECRET)'
                        ],
                        'copy' => [
                                'by' => 'Rapsys',
                        ],
                        'copy' => [
                                'by' => 'Rapsys',
@@ -149,14 +147,12 @@ class Configuration implements ConfigurationInterface {
                                                        ->scalarNode('url')->cannotBeEmpty()->defaultValue($defaults['site']['url'])->end()
                                                ->end()
                                        ->end()
                                                        ->scalarNode('url')->cannotBeEmpty()->defaultValue($defaults['site']['url'])->end()
                                                ->end()
                                        ->end()
-                                       ->arrayNode('calendar')
+                                       ->arrayNode('google')
                                                ->addDefaultsIfNotSet()
                                                ->children()
                                                ->addDefaultsIfNotSet()
                                                ->children()
-                                                       ->scalarNode('calendar')->defaultValue($defaults['calendar']['calendar'])->end()
-                                                       ->scalarNode('prefix')->defaultValue($defaults['calendar']['prefix'])->end()
-                                                       ->scalarNode('project')->defaultValue($defaults['calendar']['project'])->end()
-                                                       ->scalarNode('client')->defaultValue($defaults['calendar']['client'])->end()
-                                                       ->scalarNode('secret')->defaultValue($defaults['calendar']['secret'])->end()
+                                                       ->scalarNode('client')->defaultValue($defaults['google']['client'])->end()
+                                                       ->scalarNode('project')->defaultValue($defaults['google']['project'])->end()
+                                                       ->scalarNode('secret')->defaultValue($defaults['google']['secret'])->end()
                                                ->end()
                                        ->end()
                                        ->arrayNode('copy')
                                                ->end()
                                        ->end()
                                        ->arrayNode('copy')