lasthourcloud/app/Providers/AppServiceProvider.php

32 lines
733 B
PHP
Raw Normal View History

2023-03-17 14:33:48 +00:00
<?php
namespace App\Providers;
2023-03-30 07:47:04 +00:00
use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Support\Facades\Queue;
2023-03-17 14:33:48 +00:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Queue::after(function (JobProcessed $event) {
// @TODO: Remove `coolify-builder` container after the remoteProcess job is finishged and remoteProcess->type == `deployment`.
if ($event->job->resolveName() === 'App\Jobs\ExecuteRemoteProcess') {
}
});
2023-03-17 14:33:48 +00:00
}
}