private function checkFailure() : void
    {
        $failure = (int) $this->session->get('failure', 0);
        $time    = (int) $this->session->get('failure_time', time());
        if ($failure >= static::FAILURE) {
            if ($time >= time()) {
                throw new \DomainException($this->i18n->t(
                    'setrun/user',
                    'Form is blocked for {min} minutes',
                    ['min' => static::FAILURE_TIME / 60])
                );
            }
            $this->removeFailure();
        }
    }
private function checkFailure() : void
    {
        $failure = (int) $this->session->get('failure', 0);
        $time    = (int) $this->session->get('failure_time', time());
        if ($failure >= static::FAILURE) {
            if ($time >= time()) {
                throw new \DomainException($this->i18n->t(
                    'setrun/user',
                    'Form is blocked for {min} minutes',
                    ['min' => static::FAILURE_TIME / 60])
                );
            }
            $this->removeFailure();
        }
    }
private function checkFailure ( ) : void { $ failure = ( int ) $ this -> session -> get ( 'failure' , 0 ) ; $ time = ( int ) $ this -> session -> get ( 'failure_time' , time ( ) ) ; if ( $ failure >= static :: FAILURE ) { if ( $ time >= time ( ) ) { throw new \ DomainException ( $ this -> i18n -> t ( 'setrun/user' , 'Form is blocked for {min} minutes' , [ 'min' => static :: FAILURE_TIME / 60 ] ) ) ; } $ this -> removeFailure ( ) ; } }
Check for failure of access.
@return void
Check for failure of access .