lasthourcloud/app/Listeners/ProxyStartedNotification.php

22 lines
418 B
PHP
Raw Normal View History

<?php
namespace App\Listeners;
use App\Events\ProxyStarted;
use App\Models\Server;
class ProxyStartedNotification
{
public Server $server;
public function __construct()
{
}
public function handle(ProxyStarted $event): void
{
2024-03-12 11:30:40 +00:00
$this->server = data_get($event, 'data');
$this->server->setupDefault404Redirect();
$this->server->setupDynamicProxyConfiguration();
}
}