mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 13:25:47 -05:00
typed config
This commit is contained in:
@@ -4,10 +4,10 @@ declare(strict_types=1);
|
||||
|
||||
namespace Pterodactyl\Actions\Files;
|
||||
|
||||
use Illuminate\Support\Fluent;
|
||||
use Pterodactyl\Contracts\Files\ReadsFileContents;
|
||||
use Pterodactyl\Facades\Daemon;
|
||||
use Pterodactyl\Models\Server;
|
||||
use Pterodactyl\Support\JsonValueGuard;
|
||||
|
||||
final readonly class ReadFileContents implements ReadsFileContents
|
||||
{
|
||||
@@ -15,7 +15,7 @@ final readonly class ReadFileContents implements ReadsFileContents
|
||||
{
|
||||
return Daemon::server($server)->files()->getContent(
|
||||
$path,
|
||||
$maxBytes ?? JsonValueGuard::integer(config('pterodactyl.files.max_edit_size'))
|
||||
$maxBytes ?? Fluent::make(config()->array('pterodactyl.files'))->integer('max_edit_size')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user