2025-06-29 08:50:03 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2025-06-29 09:48:45 +02:00
|
|
|
use App\Events\ArticleFetched;
|
|
|
|
|
use App\Listeners\CheckArticleKeywords;
|
|
|
|
|
use Illuminate\Support\Facades\Event;
|
2025-06-29 08:50:03 +02:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
public function register(): void
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
2025-06-29 09:48:45 +02:00
|
|
|
Event::listen(
|
|
|
|
|
ArticleFetched::class,
|
|
|
|
|
CheckArticleKeywords::class,
|
|
|
|
|
);
|
2025-06-29 08:50:03 +02:00
|
|
|
}
|
|
|
|
|
}
|