PHP 클래스 Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\EntityPrivilegeExpressionEvaluator

This simple implementation will lazily parse and evaluate the generated PHP code into a function with a name built from the hashed expression.
상속: extends Neos\Eel\CompilingEvaluator
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
evaluate ( string $expression, Context $context ) : mixed Evaluate an expression under a given context

보호된 메소드들

메소드 설명
generateEvaluatorCode ( string $expression ) : string Internal generator method

메소드 상세

evaluate() 공개 메소드

Evaluate an expression under a given context
public evaluate ( string $expression, Context $context ) : mixed
$expression string
$context Neos\Eel\Context
리턴 mixed

generateEvaluatorCode() 보호된 메소드

Used by unit tests to debug generated PHP code.
protected generateEvaluatorCode ( string $expression ) : string
$expression string
리턴 string