repository = $repository; } /** * Mark a server for rebuild on next boot cycle. * * @param \Pterodactyl\Models\Server $server * * @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException */ public function handle(Server $server) { try { $this->repository->setServer($server)->rebuild(); } catch (RequestException $exception) { throw new DaemonConnectionException($exception); } } }