Neos\Flow\Security\RequestPattern\CsrfProtection::hasPolicyEntryForMethod PHP Метод

hasPolicyEntryForMethod() защищенный Метод

protected hasPolicyEntryForMethod ( string $className, string $methodName ) : boolean
$className string
$methodName string
Результат boolean
    protected function hasPolicyEntryForMethod($className, $methodName)
    {
        $methodPrivileges = $this->policyService->getAllPrivilegesByType(MethodPrivilegeInterface::class);
        /** @var MethodPrivilegeInterface $privilege */
        foreach ($methodPrivileges as $privilege) {
            if ($privilege->matchesMethod($className, $methodName)) {
                return true;
            }
        }
        return false;
    }