]> Raphaël G. Git Repositories - userbundle/commitdiff
Php 8.x constructor style
authorRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 13:16:22 +0000 (14:16 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 13:16:22 +0000 (14:16 +0100)
Handler/AuthenticationSuccessHandler.php

index 579c11029151c8e53436e408e60d318db54f0cd9..11e8325829081ea16d9b186cfee825cf50e30199 100644 (file)
@@ -45,23 +45,10 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler {
         'use_referer' => false,
     ];
 
-       /**
-        * Options
-        */
-    protected array $options;
-
-       /**
-        * Router instance
-        */
-       protected RouterInterface $router;
-
        /**
         * {@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);
        }