Add ticket status changed notification dispatch
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user