cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
27 lines
622 B
PHP
27 lines
622 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Services\Servers;
|
|
|
|
use Pterodactyl\Models\Server;
|
|
use Pterodactyl\Repositories\Wings\DaemonServerRepository;
|
|
|
|
class TransferService
|
|
{
|
|
/**
|
|
* TransferService constructor.
|
|
*/
|
|
public function __construct(
|
|
private DaemonServerRepository $daemonServerRepository
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* Requests an archive from the daemon.
|
|
*
|
|
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
|
|
*/
|
|
public function requestArchive(Server $server): void
|
|
{
|
|
$this->daemonServerRepository->setServer($server)->requestArchive();
|
|
}
|
|
}
|