EventListener/BugsnagListener.php
public function onKernelException(GetResponseForExceptionEvent $event)
    {
        if (!$this->auto) {
            return;
        }

        $exception = $event->getException();

        $report = Report::fromPHPThrowable(
            $this->client->getConfig(),
            $exception
        );
        $report->setUnhandled(true);
        $report->setSeverityReason([
            'type' => 'unhandledExceptionMiddleware',
            'attributes' => [
                'framework' => 'Symfony',
            ],
        ]);

        $this->client->notify($report);
    }
public function onKernelException(GetResponseForExceptionEvent $event)
    {
        if (!$this->auto) {
            return;
        }

        $exception = $event->getException();

        $report = Report::fromPHPThrowable(
            $this->client->getConfig(),
            $exception
        );
        $report->setUnhandled(true);
        $report->setSeverityReason([
            'type' => 'unhandledExceptionMiddleware',
            'attributes' => [
                'framework' => 'Symfony',
            ],
        ]);

        $this->client->notify($report);
    }
public function onKernelException ( GetResponseForExceptionEvent $ event ) { if ( ! $ this -> auto ) { return ; } $ exception = $ event -> getException ( ) ; $ report = Report :: fromPHPThrowable ( $ this -> client -> getConfig ( ) , $ exception ) ; $ report -> setUnhandled ( true ) ; $ report -> setSeverityReason ( [ 'type' => 'unhandledExceptionMiddleware' , 'attributes' => [ 'framework' => 'Symfony' , ] , ] ) ; $ this -> client -> notify ( $ report ) ; }
Handle an http kernel exception.

@param \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event

@return void
Handle an http kernel exception .