File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 16
16
use Symfony \Component \Security \Http \Firewall \AbstractListener ;
17
17
use Symfony \Component \Security \Http \Firewall \AuthenticatorManagerListener ;
18
18
use Symfony \Component \VarDumper \Caster \ClassStub ;
19
+ use Symfony \Contracts \Service \ResetInterface ;
19
20
20
21
/**
21
22
* Decorates the AuthenticatorManagerListener to collect information about security authenticators.
22
23
*
23
24
* @author Robin Chalas <robin.chalas@gmail.com>
24
25
*/
25
- final class TraceableAuthenticatorManagerListener extends AbstractListener
26
+ final class TraceableAuthenticatorManagerListener extends AbstractListener implements ResetInterface
26
27
{
27
28
private $ authenticationManagerListener ;
28
29
private $ authenticatorsInfo = [];
@@ -78,4 +79,9 @@ public function getAuthenticatorsInfo(): array
78
79
{
79
80
return $ this ->authenticatorsInfo ;
80
81
}
82
+
83
+ public function reset (): void
84
+ {
85
+ $ this ->authenticatorsInfo = [];
86
+ }
81
87
}
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " >=7.2.5" ,
20
20
"symfony/deprecation-contracts" : " ^2.1|^3" ,
21
- "symfony/security-core" : " ^5.4.19|~6.0.19|~6.1.11|^6.2.5" ,
22
21
"symfony/http-foundation" : " ^5.3|^6.0" ,
23
22
"symfony/http-kernel" : " ^5.3|^6.0" ,
24
23
"symfony/polyfill-mbstring" : " ~1.0" ,
25
24
"symfony/polyfill-php80" : " ^1.16" ,
26
- "symfony/property-access" : " ^4.4|^5.0|^6.0"
25
+ "symfony/property-access" : " ^4.4|^5.0|^6.0" ,
26
+ "symfony/security-core" : " ^5.4.19|~6.0.19|~6.1.11|^6.2.5" ,
27
+ "symfony/service-contracts" : " ^1.10|^2|^3"
27
28
},
28
29
"require-dev" : {
29
30
"symfony/cache" : " ^4.4|^5.0|^6.0" ,
You can’t perform that action at this time.
0 commit comments