Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\EntityPrivilege::evaluateMatcher PHP Метод

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

parses the matcher of this privilege using Eel and extracts "entityType" and "conditionGenerator"
protected evaluateMatcher ( ) : void
Результат void
    protected function evaluateMatcher()
    {
        if ($this->isEvaluated) {
            return;
        }
        $context = new EelContext($this->getConditionGenerator());
        /** @var EntityPrivilegeExpressionEvaluator $evaluator */
        $evaluator = $this->objectManager->get(EntityPrivilegeExpressionEvaluator::class);
        $result = $evaluator->evaluate($this->getParsedMatcher(), $context);
        $this->entityType = $result['entityType'];
        $this->conditionGenerator = $result['conditionGenerator'] !== null ? $result['conditionGenerator'] : new TrueConditionGenerator();
        $this->isEvaluated = true;
    }