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 1616use Symfony \Component \Security \Http \Firewall \AbstractListener ;
1717use Symfony \Component \Security \Http \Firewall \AuthenticatorManagerListener ;
1818use Symfony \Component \VarDumper \Caster \ClassStub ;
19+ use Symfony \Contracts \Service \ResetInterface ;
1920
2021/**
2122 * Decorates the AuthenticatorManagerListener to collect information about security authenticators.
2223 *
2324 * @author Robin Chalas <robin.chalas@gmail.com>
2425 */
25- final class TraceableAuthenticatorManagerListener extends AbstractListener
26+ final class TraceableAuthenticatorManagerListener extends AbstractListener implements ResetInterface
2627{
2728 private $ authenticationManagerListener ;
2829 private $ authenticatorsInfo = [];
@@ -78,4 +79,9 @@ public function getAuthenticatorsInfo(): array
7879 {
7980 return $ this ->authenticatorsInfo ;
8081 }
82+
83+ public function reset (): void
84+ {
85+ $ this ->authenticatorsInfo = [];
86+ }
8187}
Original file line number Diff line number Diff line change 1818 "require" : {
1919 "php" : " >=7.2.5" ,
2020 "symfony/deprecation-contracts" : " ^2.1|^3" ,
21- "symfony/security-core" : " ^5.4.19|~6.0.19|~6.1.11|^6.2.5" ,
2221 "symfony/http-foundation" : " ^5.3|^6.0" ,
2322 "symfony/http-kernel" : " ^5.3|^6.0" ,
2423 "symfony/polyfill-mbstring" : " ~1.0" ,
2524 "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"
2728 },
2829 "require-dev" : {
2930 "symfony/cache" : " ^4.4|^5.0|^6.0" ,
You can’t perform that action at this time.
0 commit comments