diff --git a/modules/system/ServiceProvider.php b/modules/system/ServiceProvider.php index 69f2b1fa62..9849faea5e 100644 --- a/modules/system/ServiceProvider.php +++ b/modules/system/ServiceProvider.php @@ -17,7 +17,6 @@ use System\Classes\ErrorHandler; use System\Classes\Extensions\ModuleManager; use System\Classes\Extensions\PluginManager; -use Winter\Storm\Foundation\Extension\WinterExtension; use System\Classes\FileManifest; use System\Classes\MailManager; use System\Classes\MarkupManager; @@ -32,6 +31,7 @@ use Twig\Extension\CoreExtension; use Winter\Storm\Console\Command; use Winter\Storm\Exception\SystemException; +use Winter\Storm\Foundation\Extension\WinterExtension; use Winter\Storm\Router\Helper as RouterHelper; use Winter\Storm\Support\ClassLoader; use Winter\Storm\Support\Facades\Event; @@ -314,34 +314,34 @@ protected function registerConsole() /* * Register console commands */ - $this->registerConsoleCommand('create.command', \System\Console\CreateCommand::class); - $this->registerConsoleCommand('create.job', \System\Console\CreateJob::class); - $this->registerConsoleCommand('create.migration', \System\Console\CreateMigration::class); - $this->registerConsoleCommand('create.model', \System\Console\CreateModel::class); - $this->registerConsoleCommand('create.factory', \System\Console\CreateFactory::class); - $this->registerConsoleCommand('create.plugin', \System\Console\CreatePlugin::class); - $this->registerConsoleCommand('create.settings', \System\Console\CreateSettings::class); - $this->registerConsoleCommand('create.test', \System\Console\CreateTest::class); - - $this->registerConsoleCommand('winter.up', \System\Console\WinterUp::class); - $this->registerConsoleCommand('winter.down', \System\Console\WinterDown::class); - $this->registerConsoleCommand('winter.update', \System\Console\WinterUpdate::class); - $this->registerConsoleCommand('winter.util', \System\Console\WinterUtil::class); - $this->registerConsoleCommand('winter.mirror', \System\Console\WinterMirror::class); - $this->registerConsoleCommand('winter.fresh', \System\Console\WinterFresh::class); - $this->registerConsoleCommand('winter.env', \System\Console\WinterEnv::class); - $this->registerConsoleCommand('winter.install', \System\Console\WinterInstall::class); - $this->registerConsoleCommand('winter.version', \System\Console\WinterVersion::class); - $this->registerConsoleCommand('winter.manifest', \System\Console\WinterManifest::class); - $this->registerConsoleCommand('winter.test', \System\Console\WinterTest::class); - - $this->registerConsoleCommand('plugin.install', \System\Console\PluginInstall::class); - $this->registerConsoleCommand('plugin.remove', \System\Console\PluginRemove::class); - $this->registerConsoleCommand('plugin.disable', \System\Console\PluginDisable::class); - $this->registerConsoleCommand('plugin.enable', \System\Console\PluginEnable::class); - $this->registerConsoleCommand('plugin.refresh', \System\Console\PluginRefresh::class); - $this->registerConsoleCommand('plugin.rollback', \System\Console\PluginRollback::class); - $this->registerConsoleCommand('plugin.list', \System\Console\PluginList::class); + $this->registerConsoleCommand('create.command', Console\Create\CreateCommand::class); + $this->registerConsoleCommand('create.job', Console\Create\CreateJob::class); + $this->registerConsoleCommand('create.migration', Console\Create\CreateMigration::class); + $this->registerConsoleCommand('create.model', Console\Create\CreateModel::class); + $this->registerConsoleCommand('create.factory', Console\Create\CreateFactory::class); + $this->registerConsoleCommand('create.plugin', Console\Create\CreatePlugin::class); + $this->registerConsoleCommand('create.settings', Console\Create\CreateSettings::class); + $this->registerConsoleCommand('create.test', Console\Create\CreateTest::class); + + $this->registerConsoleCommand('winter.up', Console\WinterUp::class); + $this->registerConsoleCommand('winter.down', Console\WinterDown::class); + $this->registerConsoleCommand('winter.update', Console\WinterUpdate::class); + $this->registerConsoleCommand('winter.util', Console\WinterUtil::class); + $this->registerConsoleCommand('winter.mirror', Console\WinterMirror::class); + $this->registerConsoleCommand('winter.fresh', Console\WinterFresh::class); + $this->registerConsoleCommand('winter.env', Console\WinterEnv::class); + $this->registerConsoleCommand('winter.install', Console\WinterInstall::class); + $this->registerConsoleCommand('winter.version', Console\WinterVersion::class); + $this->registerConsoleCommand('winter.manifest', Console\WinterManifest::class); + $this->registerConsoleCommand('winter.test', Console\WinterTest::class); + + $this->registerConsoleCommand('plugin.install', Console\Plugin\PluginInstall::class); + $this->registerConsoleCommand('plugin.remove', Console\Plugin\PluginRemove::class); + $this->registerConsoleCommand('plugin.disable', Console\Plugin\PluginDisable::class); + $this->registerConsoleCommand('plugin.enable', Console\Plugin\PluginEnable::class); + $this->registerConsoleCommand('plugin.refresh', Console\Plugin\PluginRefresh::class); + $this->registerConsoleCommand('plugin.rollback', Console\Plugin\PluginRollback::class); + $this->registerConsoleCommand('plugin.list', Console\Plugin\PluginList::class); $this->registerConsoleCommand('mix.compile', Console\Asset\Mix\MixCompile::class); $this->registerConsoleCommand('mix.config', Console\Asset\Mix\MixCreate::class); diff --git a/modules/system/aliases.php b/modules/system/aliases.php index 520cd3b329..f9709d14df 100644 --- a/modules/system/aliases.php +++ b/modules/system/aliases.php @@ -92,20 +92,20 @@ 'Illuminate\Support\Debug\HtmlDumper' => Symfony\Component\VarDumper\Dumper\HtmlDumper::class, // Scaffolds were moved from the Storm library into their corresponding modules. - 'Winter\Storm\Scaffold\Console\CreateCommand' => System\Console\CreateCommand::class, - 'Winter\Storm\Scaffold\Console\CreateModel' => System\Console\CreateModel::class, - 'Winter\Storm\Scaffold\Console\CreatePlugin' => System\Console\CreatePlugin::class, - 'Winter\Storm\Scaffold\Console\CreateSettings' => System\Console\CreateSettings::class, + 'Winter\Storm\Scaffold\Console\CreateCommand' => System\Console\Create\CreateCommand::class, + 'Winter\Storm\Scaffold\Console\CreateModel' => System\Console\Create\CreateModel::class, + 'Winter\Storm\Scaffold\Console\CreatePlugin' => System\Console\Create\CreatePlugin::class, + 'Winter\Storm\Scaffold\Console\CreateSettings' => System\Console\Create\CreateSettings::class, 'Winter\Storm\Scaffold\Console\CreateController' => Backend\Console\CreateController::class, 'Winter\Storm\Scaffold\Console\CreateFormWidget' => Backend\Console\CreateFormWidget::class, 'Winter\Storm\Scaffold\Console\CreateReportWidget' => Backend\Console\CreateReportWidget::class, 'Winter\Storm\Scaffold\Console\CreateTheme' => Cms\Console\CreateTheme::class, 'Winter\Storm\Scaffold\Console\CreateComponent' => Cms\Console\CreateComponent::class, - 'October\Rain\Scaffold\Console\CreateCommand' => System\Console\CreateCommand::class, - 'October\Rain\Scaffold\Console\CreateModel' => System\Console\CreateModel::class, - 'October\Rain\Scaffold\Console\CreatePlugin' => System\Console\CreatePlugin::class, - 'October\Rain\Scaffold\Console\CreateSettings' => System\Console\CreateSettings::class, + 'October\Rain\Scaffold\Console\CreateCommand' => System\Console\Create\CreateCommand::class, + 'October\Rain\Scaffold\Console\CreateModel' => System\Console\Create\CreateModel::class, + 'October\Rain\Scaffold\Console\CreatePlugin' => System\Console\Create\CreatePlugin::class, + 'October\Rain\Scaffold\Console\CreateSettings' => System\Console\Create\CreateSettings::class, 'October\Rain\Scaffold\Console\CreateController' => Backend\Console\CreateController::class, 'October\Rain\Scaffold\Console\CreateFormWidget' => Backend\Console\CreateFormWidget::class, 'October\Rain\Scaffold\Console\CreateReportWidget' => Backend\Console\CreateReportWidget::class, diff --git a/modules/system/console/CreateCommand.php b/modules/system/console/create/CreateCommand.php similarity index 98% rename from modules/system/console/CreateCommand.php rename to modules/system/console/create/CreateCommand.php index ddd5cbbdad..c7e527b345 100644 --- a/modules/system/console/CreateCommand.php +++ b/modules/system/console/create/CreateCommand.php @@ -1,4 +1,6 @@ -