Skip to content

Commit caf4751

Browse files
Fix 465: allow to disable authorize
1 parent 504530d commit caf4751

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DependencyInjection/FOSOAuthServerExtension.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,12 @@ public function load(array $configs, ContainerBuilder $container)
8888
}
8989
}
9090

91-
if (!empty($config['authorize'])) {
92-
$this->loadAuthorize($config['authorize'], $container, $loader);
91+
if (empty($config['authorize'])) {
92+
return;
9393
}
9494

95+
$this->loadAuthorize($config['authorize'], $container, $loader);
96+
9597
// Authorize form factory definition
9698
// TODO: Go back to xml configuration when bumping the requirement to Symfony >=2.6
9799
$authorizeFormDefinition = $container->getDefinition('fos_oauth_server.authorize.form');

0 commit comments

Comments
 (0)