Skip to content

Commit

Permalink
Fix 465: allow to disable authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed May 18, 2017
1 parent 504530d commit caf4751
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DependencyInjection/FOSOAuthServerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ public function load(array $configs, ContainerBuilder $container)
}
}

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

$this->loadAuthorize($config['authorize'], $container, $loader);

// Authorize form factory definition
// TODO: Go back to xml configuration when bumping the requirement to Symfony >=2.6
$authorizeFormDefinition = $container->getDefinition('fos_oauth_server.authorize.form');
Expand Down

0 comments on commit caf4751

Please sign in to comment.