From ef78c70afe68178a6cfd5290a5e8aff475af0757 Mon Sep 17 00:00:00 2001 From: Styxit Date: Mon, 18 May 2020 12:16:59 +0200 Subject: [PATCH] Trigger MasterSupervisorDeployed event --- src/ProvisioningPlan.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ProvisioningPlan.php b/src/ProvisioningPlan.php index 1b6f4b84..0d89fc12 100644 --- a/src/ProvisioningPlan.php +++ b/src/ProvisioningPlan.php @@ -5,6 +5,7 @@ use Illuminate\Support\Arr; use Illuminate\Support\Str; use Laravel\Horizon\Contracts\HorizonCommandQueue; +use Laravel\Horizon\Events\MasterSupervisorDeployed; use Laravel\Horizon\MasterSupervisorCommands\AddSupervisor; class ProvisioningPlan @@ -96,6 +97,8 @@ public function deploy($environment) foreach ($supervisors as $supervisor => $options) { $this->add($options); } + + event(new MasterSupervisorDeployed($this->master)); } /**