src/Commands/ExecCommand.php
/**
     * Run actions based on the event in the header.
     *
     * @param array $headers Attributes of the message headers
     * @param array $body    Attributes of the message body
     *
     * @return callable
     */
Run actions based on the event in the header.
@param array $headers Attributes of the message headers
@param array $body    Attributes of the message body

@return callable
Run actions based on the event in the header . @param array $headers Attributes of the message headers @param array $body Attributes of the message body @return callable
public function triggerAction(array $headers, array $body): callable
    {
        return function ($action) use ($headers, $body) {
            $action = BuilderFacade::buildActionFor($action);
            $action->beforeAction($headers, $body, MessageConsumer::consume($action, $headers, $body));
        };
    }
public function triggerAction ( array $ headers , array $ body ) : callable { return function ( $ action ) use ( $ headers , $ body ) { $ action = BuilderFacade :: buildActionFor ( $ action ) ; $ action -> beforeAction ( $ headers , $ body , MessageConsumer :: consume ( $ action , $ headers , $ body ) ) ; } ; }
Run actions based on the event in the header.
Run actions based on the event in the header .