Ojs\ApiBundle\Security\ApiKeyAuthenticator::supportsToken PHP Метод

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

public supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $providerKey )
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
    public function supportsToken(TokenInterface $token, $providerKey)
    {
        return $token instanceof PreAuthenticatedToken && $token->getProviderKey() === $providerKey;
    }