Files
pterodactyl-panel/app/Console/Commands/Themes/ResetCommand.php
T
2026-10-12 08:15:15 -04:00

25 lines
586 B
PHP

<?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;
#[Description('Make the built-in classic theme active again.')]
#[Signature('p:theme:reset')]
class ResetCommand extends Command
{
public function handle(ResetsThemes $themes): int
{
$themes->reset();
$this->components->info('The panel is back on the classic theme.');
return self::SUCCESS;
}
}