This commit is contained in:
Marcel Pociot
2020-04-14 21:19:23 +02:00
commit 2b03398f40
48 changed files with 8099 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Providers;
use App\Logger\RequestLogger;
use Clue\React\Buzz\Browser;
use Illuminate\Support\ServiceProvider;
use React\EventLoop\Factory as LoopFactory;
use React\EventLoop\LoopInterface;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
//
}
public function register()
{
$this->app->singleton(LoopInterface::class, function () {
return LoopFactory::create();
});
$this->app->singleton(RequestLogger::class, function () {
$browser = new Browser(app(LoopInterface::class));
return new RequestLogger($browser);
});
}
}