An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor(events): remove ProxyStarted event and associated ProxyStartedNotification listener for code cleanup
Andras Bacsaib4dd5cb21b2d
diff --git a/app/Events/ProxyStarted.php b/app/Events/ProxyStarted.phpdeleted file mode 100644index 64d562e0a6..0000000000--- a/app/Events/ProxyStarted.php+++ /dev/null@@ -1,14 +0,0 @@-<?php--namespace App\Events;--use Illuminate\Broadcasting\InteractsWithSockets;-use Illuminate\Foundation\Events\Dispatchable;-use Illuminate\Queue\SerializesModels;--class ProxyStarted-{- use Dispatchable, InteractsWithSockets, SerializesModels;-- public function __construct(public $data) {}-}diff --git a/app/Listeners/ProxyStartedNotification.php b/app/Listeners/ProxyStartedNotification.phpdeleted file mode 100644index a39bf92536..0000000000--- a/app/Listeners/ProxyStartedNotification.php+++ /dev/null@@ -1,24 +0,0 @@-<?php--namespace App\Listeners;--use App\Events\ProxyStarted;-use App\Events\ProxyStatusChanged;-use App\Models\Server;--class ProxyStartedNotification-{- public Server $server;-- public function __construct() {}-- public function handle(ProxyStarted $event): void- {- $this->server = data_get($event, 'data');- $this->server->setupDefaultRedirect();- $this->server->setupDynamicProxyConfiguration();- $this->server->proxy->force_stop = false;- $this->server->save();- // ProxyStatusChanged::dispatch( $this->server->id);- }-}