You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->eventDispatcher->addListener(InspectAuthenticatedTokenEvent::class, function (InspectAuthenticatedTokenEvent$event) use (&$listenerCalled, $modifiedToken) {
169
+
$this->eventDispatcher->addListener(AuthenticationTokenCreatedEvent::class, function (AuthenticationTokenCreatedEvent$event) use (&$listenerCalled, $modifiedToken) {
170
170
$event->setAuthenticatedToken($modifiedToken);
171
171
$listenerCalled = true;
172
172
});
@@ -175,7 +175,7 @@ public function testAuthenticateRequestCanModifyTokenFromEvent(): void
$this->eventDispatcher->addListener(InspectAuthenticatedTokenEvent::class, function (InspectAuthenticatedTokenEvent$event) use (&$listenerCalled, $modifiedToken) {
201
+
$this->eventDispatcher->addListener(AuthenticationTokenCreatedEvent::class, function (AuthenticationTokenCreatedEvent$event) use (&$listenerCalled, $modifiedToken) {
202
202
$event->setAuthenticatedToken($modifiedToken);
203
203
$listenerCalled = true;
204
204
});
@@ -207,7 +207,7 @@ public function testAuthenticateUserCanModifyTokenFromEvent(): void
0 commit comments