class OperationResolver implements OperationResolverInterface (View source)

FlowQuery Operation Resolver

Properties

protected ObjectManagerInterface $objectManager
protected ReflectionService $reflectionService
protected array $operations

2-dimensional array of registered operations: shortOperationName => priority => operation class name

protected array $finalOperationNames

associative array of registered final operations: shortOperationName => shortOperationName

Methods

initializeObject()

Initializer, building up $this->operations and $this->finalOperationNames

static array
bool
isFinalOperation(string $operationName)

No description

resolveOperation(string $operationName, array|mixed $context)

Resolve an operation, taking runtime constraints into account.

bool
hasOperation(string $operationName)

No description

Details

initializeObject()

Initializer, building up $this->operations and $this->finalOperationNames

static array buildOperationsAndFinalOperationNames(ObjectManagerInterface $objectManager)

No description

Parameters

ObjectManagerInterface $objectManager

Return Value

array

Array of sorted operations and array of final operation names

Exceptions

FlowQueryException

bool isFinalOperation(string $operationName)

No description

Parameters

string $operationName

Return Value

bool

true if $operationName is final

OperationInterface resolveOperation(string $operationName, array|mixed $context)

Resolve an operation, taking runtime constraints into account.

Parameters

string $operationName
array|mixed $context

Return Value

OperationInterface

the resolved operation

Exceptions

FlowQueryException

bool hasOperation(string $operationName)

No description

Parameters

string $operationName

Return Value

bool