src/Rocketeer/Traits/Properties/HasEventsTrait.php
public function fireEvent($event)
    {
        $handle = $this->getQualifiedEvent($event);

        // Fire the event
        /** @var \League\Event\EventInterface $event */
        $event = $this->explainer->displayBelow(function () use ($handle) {
            return $this->events->emit($handle, [$this]);
        });

        // If the event returned a strict false, halt the task
        $wasHalted = $event && $event->isPropagationStopped();
        if ($wasHalted && $event !== 'halt' && method_exists($this, 'halt')) {
            $this->halt();
        }

        return !$wasHalted;
    }
public function fireEvent($event)
    {
        $handle = $this->getQualifiedEvent($event);

        // Fire the event
        /** @var \League\Event\EventInterface $event */
        $event = $this->explainer->displayBelow(function () use ($handle) {
            return $this->events->emit($handle, [$this]);
        });

        // If the event returned a strict false, halt the task
        $wasHalted = $event && $event->isPropagationStopped();
        if ($wasHalted && $event !== 'halt' && method_exists($this, 'halt')) {
            $this->halt();
        }

        return !$wasHalted;
    }
public function fireEvent ( $ event ) { $ handle = $ this -> getQualifiedEvent ( $ event ) ; // Fire the event /** @var \League\Event\EventInterface $event */ $ event = $ this -> explainer -> displayBelow ( function ( ) use ( $ handle ) { return $ this -> events -> emit ( $ handle , [ $ this ] ) ; } ) ; // If the event returned a strict false, halt the task $ wasHalted = $ event && $ event -> isPropagationStopped ( ) ; if ( $ wasHalted && $ event !== 'halt' && method_exists ( $ this , 'halt' ) ) { $ this -> halt ( ) ; } return ! $ wasHalted ; }
Fire an event related to this task.

@param string $event

@return bool
Fire an event related to this task .