Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilegePointcutFilter::buildPointcutFilters PHP Méthode

buildPointcutFilters() protected méthode

Builds the needed pointcut filters for matching the policy privileges
protected buildPointcutFilters ( ) : boolean
Résultat boolean
    protected function buildPointcutFilters()
    {
        $this->filters = [];
        /** @var PolicyService $policyService */
        $policyService = $this->objectManager->get(PolicyService::class);
        /** @var MethodPrivilegeInterface[] $methodPrivileges */
        $methodPrivileges = $policyService->getAllPrivilegesByType(MethodPrivilegeInterface::class);
        foreach ($methodPrivileges as $privilege) {
            $this->filters[$privilege->getCacheEntryIdentifier()] = $privilege->getPointcutFilterComposite();
        }
    }