Contao\CoreBundle\Security\ContaoAuthenticator::canSkipAuthentication PHP Method

canSkipAuthentication() private method

Checks if the authentication can be skipped.
private canSkipAuthentication ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
return boolean
    private function canSkipAuthentication(TokenInterface $token)
    {
        if ($token instanceof ContaoToken) {
            return true;
        }
        if (null === $this->container) {
            throw new \LogicException('The service container has not been set.');
        }
        return !$this->isContaoScope();
    }