2019-07-30 17:18:44 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2019-08-10 14:34:53 +00:00
|
|
|
use App\Component\Config\File;
|
|
|
|
use APP\Component\Config\IConfig;
|
|
|
|
use App\Jobs\Updater\IUpdater;
|
2019-07-30 17:18:44 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2019-08-10 14:34:53 +00:00
|
|
|
$this->app->singleton(IUpdater::class, function ($app) {
|
|
|
|
return new \App\Jobs\Updater\Cloudflare();
|
|
|
|
});
|
|
|
|
$this->app->singleton(IConfig::class, function ($app) {
|
|
|
|
return new File();
|
|
|
|
});
|
2019-07-30 17:18:44 +00:00
|
|
|
}
|
|
|
|
}
|