From a9b3cdf4a9bbc867125b8bedfbebc74ca24ca04c Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Thu, 10 Jan 2019 22:19:26 +0100 Subject: [PATCH] Remove all not tested configuration options --- src/ServiceContainer/SymfonyExtension.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/ServiceContainer/SymfonyExtension.php b/src/ServiceContainer/SymfonyExtension.php index 3a1e53a..44f1384 100644 --- a/src/ServiceContainer/SymfonyExtension.php +++ b/src/ServiceContainer/SymfonyExtension.php @@ -55,10 +55,7 @@ final class SymfonyExtension implements Extension ->arrayNode('kernel') ->addDefaultsIfNotSet() ->children() - ->scalarNode('path')->defaultNull()->end() - ->scalarNode('class')->isRequired()->end() - ->scalarNode('env')->defaultValue('test')->cannotBeEmpty()->end() - ->booleanNode('debug')->defaultTrue()->end() + ->scalarNode('class')->end() ->end() ->end() ->end() @@ -100,16 +97,12 @@ final class SymfonyExtension implements Extension private function loadKernel(ContainerBuilder $container, array $config): void { $definition = new Definition($config['class'], [ - $config['env'], - (bool) $config['debug'], + 'test', + true, ]); $definition->addMethodCall('boot'); $definition->setPublic(true); - if (null !== $config['path']) { - $definition->setFile($config['path']); - } - $container->setDefinition(self::KERNEL_ID, $definition); }