src/Events.php
/**
     * Run the correct action.
     *
     * @param array $headers Attributes of the message headers
     * @param array $body    Attributes of the message body
     *
     * @return callable
     */
Run the correct action.
@param array $headers Attributes of the message headers
@param array $body    Attributes of the message body

@return callable
Run the correct action . @param array $headers Attributes of the message headers @param array $body Attributes of the message body @return callable
private function triggerAction(array $headers, array $body): callable
    {
        return function ($class) use ($headers, $body) {
            $action = BuilderFacade::buildActionFor($class);
            $consumeMessage = MessageConsumer::consume($action, $headers, $body);
            $action->beforeAction($headers, $body, $consumeMessage);
        };
    }
private function triggerAction ( array $ headers , array $ body ) : callable { return function ( $ class ) use ( $ headers , $ body ) { $ action = BuilderFacade :: buildActionFor ( $ class ) ; $ consumeMessage = MessageConsumer :: consume ( $ action , $ headers , $ body ) ; $ action -> beforeAction ( $ headers , $ body , $ consumeMessage ) ; } ; }
Run the correct action.
Run the correct action .