Files
pterodactyl-panel/app/Contracts/Files/ReadsFileContents.php
T

22 lines
626 B
PHP
Raw Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Files;
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
use Pterodactyl\Exceptions\Http\Server\FileSizeTooLargeException;
use Pterodactyl\Models\Server;
interface ReadsFileContents
{
/**
* Read a server file through Wings. The read is always bounded: without an
* explicit limit the panel's configured maximum editable file size applies.
*
* @throws FileSizeTooLargeException
* @throws DaemonConnectionException
*/
public function read(Server $server, string $path, ?int $maxBytes = null): string;
}