<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use PhpCsFixer\Error\ErrorsManager;
use Symfony\Component\EventDispatcher\EventDispatcher;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->singleton(ErrorsManager::class, function () {
return new ErrorsManager();
});
$this->app->singleton(EventDispatcher::class, function () {
return new EventDispatcher();
});
}
}