Cartalyst\Sentinel\Sentinel::cycleCheckpoints PHP Method

cycleCheckpoints() protected method

Cycles through all the registered checkpoints for a user. Checkpoints may throw their own exceptions, however, if just one returns false, the cycle fails.
protected cycleCheckpoints ( string $method, Cartalyst\Sentinel\Users\UserInterface $user = null, boolean $halt = true ) : boolean
$method string
$user Cartalyst\Sentinel\Users\UserInterface
$halt boolean
return boolean
    protected function cycleCheckpoints($method, UserInterface $user = null, $halt = true)
    {
        if (!$this->checkpointsStatus) {
            return true;
        }
        foreach ($this->checkpoints as $checkpoint) {
            $response = $checkpoint->{$method}($user);
            if ($response === false && $halt === true) {
                return false;
            }
        }
        return true;
    }