mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
27 lines
732 B
PHP
27 lines
732 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Server;
|
|
use App\Traits\BroadcastsToTeam;
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
/**
|
|
* A step of the "Finish the transfer" list changed, so open server pages show it without a reload.
|
|
*/
|
|
class TransferFinishChanged implements ShouldBroadcast, ShouldDispatchAfterCommit
|
|
{
|
|
use BroadcastsToTeam, Dispatchable, InteractsWithSockets;
|
|
|
|
public string $serverUuid;
|
|
|
|
public function __construct(Server $server)
|
|
{
|
|
$this->teamId = $server->team_id;
|
|
$this->serverUuid = $server->uuid;
|
|
}
|
|
}
|