Newscoop\NewscoopBundle\Security\Http\Authentication\AuthenticationFailedHandler::onAuthenticationFailure PHP Метод

onAuthenticationFailure() публичный Метод

This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
public onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception ) : Response
$request Symfony\Component\HttpFoundation\Request
$exception Symfony\Component\Security\Core\Exception\AuthenticationException
Результат Symfony\Component\HttpFoundation\Response The response to return, never null
    function onAuthenticationFailure(Request $request, AuthenticationException $exception)
    {
        // log failed attepts
        //\LoginAttempts::RecordLoginAttempt();
        return parent::onAuthenticationFailure($request, $exception);
    }
AuthenticationFailedHandler