Add ticket status changed notification dispatch

This commit is contained in:
Eric Peters
2026-04-20 22:50:22 +02:00
parent ee15efe739
commit 71f07a8f7b
8 changed files with 417 additions and 0 deletions
+15
View File
@@ -2,6 +2,8 @@
namespace App\Providers;
use App\Actions\Notifications\QueueTicketStatusChangedNotificationDeliveries;
use App\Actions\Notifications\TicketStatusChanged;
use App\Actions\Permissions\PermissionService;
use App\Enums\Permission;
use App\Models\Project;
@@ -11,6 +13,7 @@ use Carbon\CarbonImmutable;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
@@ -37,6 +40,7 @@ class AppServiceProvider extends ServiceProvider
}
$this->configureAuthorization();
$this->configureEventListeners();
$this->configureDefaults();
}
@@ -85,4 +89,15 @@ class AppServiceProvider extends ServiceProvider
: null,
);
}
/**
* Configure application event listeners.
*/
protected function configureEventListeners(): void
{
Event::listen(
TicketStatusChanged::class,
QueueTicketStatusChangedNotificationDeliveries::class,
);
}
}