mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
18 lines
357 B
PHP
18 lines
357 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Pterodactyl\Actions\Servers;
|
||
|
|
|
||
|
|
use Pterodactyl\Contracts\Servers\RebuildsServers;
|
||
|
|
use Pterodactyl\Facades\Daemon;
|
||
|
|
use Pterodactyl\Models\Server;
|
||
|
|
|
||
|
|
final readonly class RebuildServer implements RebuildsServers
|
||
|
|
{
|
||
|
|
public function rebuild(Server $server): void
|
||
|
|
{
|
||
|
|
Daemon::server($server)->sync();
|
||
|
|
}
|
||
|
|
}
|