mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 03:45:53 -05:00
25 lines
619 B
PHP
25 lines
619 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\Services\Themes\ThemeRepository;
|
|
|
|
#[Description('Make the built-in classic theme active again.')]
|
|
#[Signature('p:theme:reset')]
|
|
class ResetCommand extends Command
|
|
{
|
|
public function handle(ThemeRepository $themes): int
|
|
{
|
|
$themes->setActive(ThemeRepository::CLASSIC);
|
|
|
|
$this->components->info('The panel is back on the classic theme.');
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|