debug/Handler.php
protected function emitDebugEvent($name, \Throwable $exception)
    {
        // Don't proceed when we've got no Emitter.
        if (null === $this->emitter) {
            return null;
        }

        $this->emitter->emit($name, $event = new Event($exception, $this));

        // Event Listeners may override the Exception. Need to account for that.
        return $event->getThrowable();
    }
protected function emitDebugEvent($name, \Throwable $exception)
    {
        // Don't proceed when we've got no Emitter.
        if (null === $this->emitter) {
            return null;
        }

        $this->emitter->emit($name, $event = new Event($exception, $this));

        // Event Listeners may override the Exception. Need to account for that.
        return $event->getThrowable();
    }
protected function emitDebugEvent ( $ name , \ Throwable $ exception ) { // Don't proceed when we've got no Emitter. if ( null === $ this -> emitter ) { return null ; } $ this -> emitter -> emit ( $ name , $ event = new Event ( $ exception , $ this ) ) ; // Event Listeners may override the Exception. Need to account for that. return $ event -> getThrowable ( ) ; }
Helper method which emits a diagnostics\events\Debug event with the given name and the given initial
Exception and returns the Exception set in the Event after emission is done. All of it assuming an Emitter
is set for the Handler. False will be returned if that is not the case.

@param   string          $name       The name of the Event to emit {@see definitions/Events}.
@param   \Throwable      $exception  The initial Exception to be passed to listeners.
@return  \Exception|null             Either an Exception when event emission occurred or null if no Emitter
is set and therefore no events were emitted.
Helper method which emits a diagnostics \ events \ Debug event with the given name and the given initial Exception and returns the Exception set in the Event after emission is done . All of it assuming an Emitter is set for the Handler . False will be returned if that is not the case .