22 lines
423 B
PHP
22 lines
423 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\DeviceStateChanged;
|
|
use App\Listeners\EvaluateAutomations;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
Event::listen(DeviceStateChanged::class, EvaluateAutomations::class);
|
|
}
|
|
}
|