[FrameworkBundle] Return early
This commit is contained in:
parent
c995f1c814
commit
b6c8aa5b68
@ -895,7 +895,10 @@ class FrameworkExtension extends Extension
|
||||
$container->setParameter('request_listener.http_port', $config['http_port']);
|
||||
$container->setParameter('request_listener.https_port', $config['https_port']);
|
||||
|
||||
if ($this->annotationsConfigEnabled) {
|
||||
if (!$this->annotationsConfigEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
$container->register('routing.loader.annotation', AnnotatedRouteControllerLoader::class)
|
||||
->setPublic(false)
|
||||
->addTag('routing.loader', ['priority' => -10])
|
||||
@ -917,7 +920,6 @@ class FrameworkExtension extends Extension
|
||||
new Reference('routing.loader.annotation'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
private function registerSessionConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
|
||||
{
|
||||
|
Reference in New Issue
Block a user