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(); }