honeybadger-io/honeybadger-laravel

View on GitHub
src/Concerns/HandlesEvents.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Honeybadger\HoneybadgerLaravel\Concerns;

use Illuminate\Events\Dispatcher;

trait HandlesEvents
{
    public function register()
    {
        /** @var Dispatcher $dispatcher */
        $dispatcher = app('events');
        $dispatcher->listen($this->handles, [$this, 'handle']);
    }
}