Rapsys Git
/
userbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ec5ad
)
Php 8.x constructor style
author
Raphaël Gertz
<git@rapsys.eu>
Tue, 27 Feb 2024 13:16:22 +0000
(14:16 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Tue, 27 Feb 2024 13:16:22 +0000
(14:16 +0100)
Handler/AuthenticationSuccessHandler.php
patch
|
blob
|
history
diff --git
a/Handler/AuthenticationSuccessHandler.php
b/Handler/AuthenticationSuccessHandler.php
index 579c11029151c8e53436e408e60d318db54f0cd9..11e8325829081ea16d9b186cfee825cf50e30199 100644
(file)
--- a/
Handler/AuthenticationSuccessHandler.php
+++ b/
Handler/AuthenticationSuccessHandler.php
@@
-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);
}