Skip to content

Commit

Permalink
Added descriptive exception when using Guards and the authenticator s…
Browse files Browse the repository at this point in the history
…ystem
  • Loading branch information
wouterj committed May 27, 2020
1 parent 8b5dfb9 commit 8c98647
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -99,6 +99,10 @@ public function create(ContainerBuilder $container, string $id, array $config, s

public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId)
{
if (!class_exists(GuardBridgeAuthenticator::class)) {
throw new \LogicException('Package "symfony/security-guard" must be version 5.1 or higher in order to use the authenticator security system.');
}

$userProvider = new Reference($userProviderId);
$authenticatorIds = [];

Expand Down

0 comments on commit 8c98647

Please sign in to comment.