protected function dispatch(DelayedEvent $event)
    {
        if ($this->current instanceof Transaction) {
            // Already in transaction, reserve it
            $this->current->attach($event);
        } else {
            // There are no transactions, just dispatch it
            $event->fire();
        }
    }
protected function dispatch(DelayedEvent $event)
    {
        if ($this->current instanceof Transaction) {
            // Already in transaction, reserve it
            $this->current->attach($event);
        } else {
            // There are no transactions, just dispatch it
            $event->fire();
        }
    }
protected function dispatch ( DelayedEvent $ event ) { if ( $ this -> current instanceof Transaction ) { // Already in transaction, reserve it $ this -> current -> attach ( $ event ) ; } else { // There are no transactions, just dispatch it $ event -> fire ( ) ; } }
Dispaches payload.

@param DelayedEvent $event
@return void
Dispaches payload .