8000 [Feature] Add subject to the guard expressions · Issue #6 · GlobalTradingTechnologies/workflow-extensions-bundle · GitHub
[go: up one dir, main page]

Skip to content
[Feature] Add subject to the guard expressions #6
@meDavid

Description

@meDavid

I find my self writing a lot of event.getSubject() in guard expressions. Wouldn't it be a good option to add this to the expression context in

$expressionResult = $this->language->evaluate($expression, ['event' => $event]);

Every GuardEvent has a subject. This would make my expressions a bit more readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0