Test loading kernel based on classname and path
This commit is contained in:
@@ -55,7 +55,8 @@ final class SymfonyExtension implements Extension
|
||||
->arrayNode('kernel')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->scalarNode('class')->end()
|
||||
->scalarNode('path')->defaultNull()->end()
|
||||
->scalarNode('class')->isRequired()->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
@@ -103,6 +104,10 @@ final class SymfonyExtension implements Extension
|
||||
$definition->addMethodCall('boot');
|
||||
$definition->setPublic(true);
|
||||
|
||||
if ($config['path'] !== null) {
|
||||
$definition->setFile($config['path']);
|
||||
}
|
||||
|
||||
$container->setDefinition(self::KERNEL_ID, $definition);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user