Skip to content

Commit

Permalink
Always run SecurityBundle addAuthenticatorFactory
Browse files Browse the repository at this point in the history
It should be always loaded as we require at least SF 5.4
  • Loading branch information
veteran29 committed Nov 23, 2023
1 parent b89d840 commit 30f109b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/StethoMeOryAuthBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ public function build(ContainerBuilder $container): void

/** @var SecurityExtension $extension */
$extension = $container->getExtension('security');

// Authenticator factory for Symfony 5.4 and later
if (method_exists($extension, 'addAuthenticatorFactory')) {
$extension->addAuthenticatorFactory(new OryKratosAuthenticatorFactory());
}
$extension->addAuthenticatorFactory(new OryKratosAuthenticatorFactory());
}
}

0 comments on commit 30f109b

Please sign in to comment.