From c7b85c37453e97a5234a061b701f8250b86a1a4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 7 Sep 2021 15:49:17 +0200 Subject: [PATCH] Add note about positional replaced argument Cleanup indent --- Handler/AuthenticationFailureHandler.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Handler/AuthenticationFailureHandler.php b/Handler/AuthenticationFailureHandler.php index 5945644..95c5ede 100644 --- a/Handler/AuthenticationFailureHandler.php +++ b/Handler/AuthenticationFailureHandler.php @@ -39,13 +39,13 @@ class AuthenticationFailureHandler extends DefaultAuthenticationFailureHandler { * Config array */ protected $config; - protected $options; - protected $defaultOptions = [ - 'failure_path' => null, - 'failure_forward' => false, - 'login_path' => '/login', - 'failure_path_parameter' => '_failure_path', - ]; + protected $options; + protected $defaultOptions = [ + 'failure_path' => null, + 'failure_forward' => false, + 'login_path' => '/login', + 'failure_path_parameter' => '_failure_path', + ]; /** * Router instance @@ -58,9 +58,12 @@ class AuthenticationFailureHandler extends DefaultAuthenticationFailureHandler { protected $slugger; /** + * @xxx Second argument will be replaced by security.firewalls.main.logout.target + * @see vendor/symfony/security-bundle/DependencyInjection/SecurityExtension.php +360 + * * {@inheritdoc} */ - public function __construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = [], LoggerInterface $logger, ContainerInterface $container, RouterInterface $router, SluggerUtil $slugger) { + public function __construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options, LoggerInterface $logger, ContainerInterface $container, RouterInterface $router, SluggerUtil $slugger) { //Set config $this->config = $container->getParameter(self::getAlias()); @@ -74,7 +77,7 @@ class AuthenticationFailureHandler extends DefaultAuthenticationFailureHandler { parent::__construct($httpKernel, $httpUtils, $options, $logger); } - /** + /** * This is called when an interactive authentication attempt fails * * User may retrieve mail + field + hash for each unactivated/locked accounts -- 2.41.0