2026-10-05 18:10:18 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Pterodactyl\Console\Commands\Themes;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Console\Attributes\Description;
|
|
|
|
|
use Illuminate\Console\Attributes\Signature;
|
|
|
|
|
use Illuminate\Console\Command;
|
2026-10-12 21:24:43 -04:00
|
|
|
use Pterodactyl\Services\Themes\ThemeRepository;
|
2026-10-05 18:10:18 -04:00
|
|
|
|
2026-10-12 07:47:42 -04:00
|
|
|
#[Description('Make the built-in classic theme active again.')]
|
2026-10-05 18:10:18 -04:00
|
|
|
#[Signature('p:theme:reset')]
|
|
|
|
|
class ResetCommand extends Command
|
|
|
|
|
{
|
2026-10-12 21:24:43 -04:00
|
|
|
public function handle(ThemeRepository $themes): int
|
2026-10-05 18:10:18 -04:00
|
|
|
{
|
2026-10-12 21:24:43 -04:00
|
|
|
$themes->setActive(ThemeRepository::CLASSIC);
|
2026-10-05 18:10:18 -04:00
|
|
|
|
2026-10-12 07:47:42 -04:00
|
|
|
$this->components->info('The panel is back on the classic theme.');
|
2026-10-05 18:10:18 -04:00
|
|
|
|
|
|
|
|
return self::SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
}
|