Skip to content

Commit fe924e8

Browse files
committed
Add bugsnag aliases in service provider
1 parent 4275dd0 commit fe924e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
namespace App\Providers;
44

55
use App\Models\Thread;
6+
use Psr\Log\LoggerInterface;
7+
use Illuminate\Contracts\Logging\Log;
68
use Illuminate\Support\ServiceProvider;
79
use Illuminate\Database\Eloquent\Relations\Relation;
810

@@ -25,4 +27,10 @@ public function bootMacros()
2527
{
2628
require base_path('resources/macros/blade.php');
2729
}
30+
31+
public function register()
32+
{
33+
$this->app->alias('bugsnag.multi', Log::class);
34+
$this->app->alias('bugsnag.multi', LoggerInterface::class);
35+
}
2836
}

0 commit comments

Comments
 (0)