Skip to content

Commit

Permalink
Merge branch '5.4' into 6.3
Browse files Browse the repository at this point in the history
* 5.4:
  Make FormPerformanceTestCase compatible with PHPUnit 10
  [Security] Fix resetting traceable listeners
  [Validator] Add missing italian translations
  [Notifier] Tweak an error message
  Change incorrect message, when the sender in the global envelope or the from header of asEmailMessage() is not defined.
  Bump Symfony version to 5.4.30
  Update VERSION for 5.4.29
  Update CONTRIBUTORS for 5.4.29
  Update CHANGELOG for 5.4.29
  • Loading branch information
derrabus committed Oct 7, 2023
2 parents 47058ea + 912a75c commit 9db8050
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
use Symfony\Component\Security\Http\Firewall\AbstractListener;
use Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener;
use Symfony\Component\VarDumper\Caster\ClassStub;
use Symfony\Contracts\Service\ResetInterface;

/**
* Decorates the AuthenticatorManagerListener to collect information about security authenticators.
*
* @author Robin Chalas <robin.chalas@gmail.com>
*/
final class TraceableAuthenticatorManagerListener extends AbstractListener
final class TraceableAuthenticatorManagerListener extends AbstractListener implements ResetInterface
{
private AuthenticatorManagerListener $authenticationManagerListener;
private array $authenticatorsInfo = [];
Expand Down Expand Up @@ -78,4 +79,9 @@ public function getAuthenticatorsInfo(): array
{
return $this->authenticatorsInfo;
}

public function reset(): void
{
$this->authenticatorsInfo = [];
}
}
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"require": {
"php": ">=8.1",
"symfony/deprecation-contracts": "^2.5|^3",
"symfony/security-core": "^6.3",
"symfony/http-foundation": "^5.4|^6.0",
"symfony/http-kernel": "^6.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/property-access": "^5.4|^6.0"
"symfony/property-access": "^5.4|^6.0",
"symfony/security-core": "^6.3",
"symfony/service-contracts": "^1.10|^2|^3"
},
"require-dev": {
"symfony/cache": "^5.4|^6.0",
Expand Down

0 comments on commit 9db8050

Please sign in to comment.