/**
* Default options
*/
- protected $defaultOptions = [
+ protected array $defaultOptions = [
'always_use_default_target_path' => false,
'default_target_path' => '/',
'login_path' => '/login',
'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);
}