]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Handler/AuthenticationFailureHandler.php
Strict types
[userbundle] / Handler / AuthenticationFailureHandler.php
index 59456444a79578de8bc8c019071397afdd9eb165..fea0824e0e107d9c9a59fd20260ab5045231f841 100644 (file)
@@ -38,29 +38,32 @@ 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 array $config;
+       protected array $options;
+       protected array $defaultOptions = [
+               'failure_path' => null,
+               'failure_forward' => false,
+               'login_path' => '/login',
+               'failure_path_parameter' => '_failure_path',
+       ];
 
        /**
         * Router instance
         */
-       protected $router;
+       protected RouterInterface $router;
 
        /**
         * Slugger instance
         */
-       protected $slugger;
+       protected SluggerUtil $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