]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Handler/AuthenticationSuccessHandler.php
Use getObject event args member function instead of deprecated getEntity
[userbundle] / 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);
        }