libSmalldb
v2.0.2
|
Public Member Functions | |
__construct (array $transitionPredicates=[], bool $defaultAllow=true) | |
isTransitionAllowed (ReferenceInterface $ref, TransitionDefinition $transition) | |
A simple and cost-effective check whether the transition can be invoked. More... | |
isAccessAllowed (string $machineType, string $transitionName, ReferenceInterface $ref) | |
getTransitionPredicates () | |
Static Public Member Functions | |
static | compileTransitionPredicatesSymfony (SmalldbDefinitionBagInterface $definitionBag, ContainerBuilder $container) |
static | compileTransitionPredicates (SmalldbDefinitionBagInterface $definitionBag, ContainerAdapter $containerAdapter) |
__construct | ( | array | $transitionPredicates = [] , |
bool | $defaultAllow = true |
||
) |
|
static |
|
static |
isTransitionAllowed | ( | ReferenceInterface | $ref, |
TransitionDefinition | $transition | ||
) |
A simple and cost-effective check whether the transition can be invoked.
This check is called when we want to know wheter or not we can invoke the transition, but we have no intention of invoking the transition right now (e.g., when rendering a menu with available transitions).
Implements TransitionGuard.
isAccessAllowed | ( | string | $machineType, |
string | $transitionName, | ||
ReferenceInterface | $ref | ||
) |
getTransitionPredicates | ( | ) |