X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/2b55a565f43b0581c625cbc00948749d983056cc..2e8c21a0c5d7d2d26d127497bb990f15c9df445d:/Handler/AuthenticationSuccessHandler.php?ds=inline diff --git a/Handler/AuthenticationSuccessHandler.php b/Handler/AuthenticationSuccessHandler.php index 961c1b1..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,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; } /**