]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Handler/AuthenticationSuccessHandler.php
Strict types
[userbundle] / Handler / AuthenticationSuccessHandler.php
index 90d53d74051b6a89d6e81fa367854630dbd2eeff..11e8325829081ea16d9b186cfee825cf50e30199 100644 (file)
@@ -37,7 +37,7 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler {
        /**
         * Default options
         */
        /**
         * Default options
         */
-    protected $defaultOptions = [
+    protected array $defaultOptions = [
         'always_use_default_target_path' => false,
         'default_target_path' => '/',
         'login_path' => '/login',
         'always_use_default_target_path' => false,
         'default_target_path' => '/',
         'login_path' => '/login',
@@ -45,23 +45,10 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler {
         'use_referer' => false,
     ];
 
         'use_referer' => false,
     ];
 
-       /**
-        * Options
-        */
-    protected $options;
-
-       /**
-        * Router instance
-        */
-       protected $router;
-
        /**
         * {@inheritdoc}
         */
        /**
         * {@inheritdoc}
         */
-       public function __construct(RouterInterface $router, array $options = []) {
-               //Set router
-               $this->router = $router;
-
+       public function __construct(protected RouterInterface $router, protected array $options = []) {
                //Set options
                $this->setOptions($options);
        }
                //Set options
                $this->setOptions($options);
        }