Remove all not tested configuration options
This commit is contained in:
@@ -55,10 +55,7 @@ final class SymfonyExtension implements Extension
|
|||||||
->arrayNode('kernel')
|
->arrayNode('kernel')
|
||||||
->addDefaultsIfNotSet()
|
->addDefaultsIfNotSet()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('path')->defaultNull()->end()
|
->scalarNode('class')->end()
|
||||||
->scalarNode('class')->isRequired()->end()
|
|
||||||
->scalarNode('env')->defaultValue('test')->cannotBeEmpty()->end()
|
|
||||||
->booleanNode('debug')->defaultTrue()->end()
|
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
@@ -100,16 +97,12 @@ final class SymfonyExtension implements Extension
|
|||||||
private function loadKernel(ContainerBuilder $container, array $config): void
|
private function loadKernel(ContainerBuilder $container, array $config): void
|
||||||
{
|
{
|
||||||
$definition = new Definition($config['class'], [
|
$definition = new Definition($config['class'], [
|
||||||
$config['env'],
|
'test',
|
||||||
(bool) $config['debug'],
|
true,
|
||||||
]);
|
]);
|
||||||
$definition->addMethodCall('boot');
|
$definition->addMethodCall('boot');
|
||||||
$definition->setPublic(true);
|
$definition->setPublic(true);
|
||||||
|
|
||||||
if (null !== $config['path']) {
|
|
||||||
$definition->setFile($config['path']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$container->setDefinition(self::KERNEL_ID, $definition);
|
$container->setDefinition(self::KERNEL_ID, $definition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user