2023-05-30 17:19:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2023-06-01 05:33:46 +00:00
|
|
|
use App\Services\WebCrawlerService;
|
2023-05-30 17:19:53 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2023-06-01 05:33:46 +00:00
|
|
|
class WebCrawlServiceProvider extends ServiceProvider
|
2023-05-30 17:19:53 +00:00
|
|
|
{
|
|
|
|
public function register()
|
|
|
|
{
|
2023-06-01 05:33:46 +00:00
|
|
|
$this->app->singleton(WebCrawlerService::class, function () {
|
|
|
|
return new WebCrawlerService();
|
|
|
|
});
|
2023-05-30 17:19:53 +00:00
|
|
|
}
|
2023-06-01 05:33:46 +00:00
|
|
|
}
|