From 5fbd84cf71e2ca78e246ad14c65f7c11037f3667 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 21 Feb 2024 12:03:35 +0100 Subject: [PATCH 1/1] Remove unused env variables Rename calendar to google key Cleanup --- DependencyInjection/Configuration.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index c556d1e..d7f0adb 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -74,12 +74,10 @@ class Configuration implements ConfigurationInterface { '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', @@ -149,14 +147,12 @@ class Configuration implements ConfigurationInterface { ->scalarNode('url')->cannotBeEmpty()->defaultValue($defaults['site']['url'])->end() ->end() ->end() - ->arrayNode('calendar') + ->arrayNode('google') ->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') -- 2.41.1