Hi, I'm working on an extension, and I've almost got everything done. There's just one part I haven't been able to figure out how to hook into in a nice way.
I'd like to add some additional logic in the ForgotPasswordController
code:
public function handle(ServerRequestInterface $request)
{
$email = array_get($request->getParsedBody(), 'email');
$this->bus->dispatch(
new RequestPasswordReset($email)
);
return new EmptyResponse;
}
I see it triggers a bus command (not sure if correct terminology) which is handled in RequestPasswordResetHandler
however I cannot find a single other reference to RequestPasswordResetHandler
in the code so I'm not sure exactly how this happens.
Is there a good way to hook into this process? I know I could define a class in the same namespace to override it so it never gets autoloaded, but that's a nasty hack I would really like to avoid.