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