X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/a410610ad184292cb2df65cc0dfb052470d2a69d..bf3988c958bc916f2214f4601d47888a7f53c5f9:/Handler/AuthenticationSuccessHandler.php?ds=inline diff --git a/Handler/AuthenticationSuccessHandler.php b/Handler/AuthenticationSuccessHandler.php index 90d53d7..11e8325 100644 --- a/Handler/AuthenticationSuccessHandler.php +++ b/Handler/AuthenticationSuccessHandler.php @@ -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,23 +45,10 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler { 'use_referer' => false, ]; - /** - * Options - */ - protected $options; - - /** - * Router instance - */ - protected $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); }