Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Sep 9, 2020
1 parent 1d79a00 commit 4cd8a9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function getConfigTreeBuilder()
->arrayNode('consent_cookie')
->children()
->integerNode('lifetime')->defaultValue(LegalCookieHelper::DEFAULT_COOKIE_LIFETIME)->info('Default lifetime of 10 years')->end()
->end
->end
->end()
->end()
->end()
;

Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/KunstmaanCookieExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public function load(array $configs, ContainerBuilder $container)
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');

$container->getDefinition(LegalCookieHelper::class)->setArgument(2, $config['cookie_lifetime']);
$container->getDefinition(LegalCookieHelper::class)->setArgument(2, $config['consent_cookie']['lifetime']);
}
}

0 comments on commit 4cd8a9c

Please sign in to comment.