Files
pterodactyl-panel/app/Console/Commands/Themes/ResetCommand.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

25 lines
613 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('Remove the applied theme, restoring the stock panel look.')]
#[Signature('p:theme:reset')]
class ResetCommand extends Command
{
public function handle(ResetsThemes $themes): int
{
$themes->reset();
$this->components->info('Theme removed - the panel is back on its stock tokens.');
return self::SUCCESS;
}
}