notifierTypes = $notifierTypes; } public function execute(LoginAttemptInterface $loginAttempt) { $attemptStatus = $loginAttempt->getStatus(); if ($attemptStatus !== null && isset($this->notifierTypes[$attemptStatus])) { $this->notifierTypes[$attemptStatus]->execute($loginAttempt); } } }