Files
pterodactyl-panel/app/Console/Commands/Themes/ResetCommand.php
T

25 lines
586 B
PHP
Raw Normal View History

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;
use Pterodactyl\Contracts\Themes\ResetsThemes;
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
{
public function handle(ResetsThemes $themes): int
{
$themes->reset();
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;
}
}