Fix EventDispatcer & events

Looks like parameter for the `->dispatch(` have been flipped (event first then event name).
Define events should now extends `Symfony\Contracts\EventDispatcher\Event`
This commit is contained in:
Jeremy Benoist
2022-12-15 21:47:31 +01:00
parent 63bcf50ea7
commit d47c208743
15 changed files with 30 additions and 48 deletions

View File

@ -57,8 +57,8 @@ class AuthenticationFailureListenerTest extends TestCase
);
$this->dispatcher->dispatch(
AuthenticationEvents::AUTHENTICATION_FAILURE,
$event
$event,
AuthenticationEvents::AUTHENTICATION_FAILURE
);
$records = $this->logHandler->getRecords();

View File

@ -72,8 +72,8 @@ class CreateConfigListenerTest extends TestCase
->method('flush');
$this->dispatcher->dispatch(
FOSUserEvents::REGISTRATION_COMPLETED,
$event
$event,
FOSUserEvents::REGISTRATION_COMPLETED
);
}
}