diff --git a/composer.json b/composer.json index 8b4e76248b..49362f6c03 100644 --- a/composer.json +++ b/composer.json @@ -118,7 +118,7 @@ "post-create-project-cmd": [ "@php -r \"file_put_contents('.gitignore', str_replace('/composer.lock' . PHP_EOL, '', file_get_contents('.gitignore')));\"", "@php bin/console sylius:inform-about-gus --ansi", - "@php bin/console sylius:show-available-plugins --ansi" + "@php bin/console sylius:show-plus-info --ansi" ], "auto-scripts": { "cache:clear": "symfony-cmd", diff --git a/src/Console/Command/ShowPlusInfoCommand.php b/src/Console/Command/ShowPlusInfoCommand.php new file mode 100644 index 0000000000..696db10942 --- /dev/null +++ b/src/Console/Command/ShowPlusInfoCommand.php @@ -0,0 +1,61 @@ +section('Sylius Plus'); + $io->writeln('Consists of modules: '); + $io->listing($this->getPlusModules()); + $io->writeln('For more information visit: ' . self::SYLIUS_PLUS_URL . ''); + + $io->section('Sylius Store'); + $io->writeln('A wide range of community plugins both open source and licensed ' . self::SYLIUS_STORE_URL . ''); + + return Command::SUCCESS; + } + + private function getPlusModules(): array + { + return [ + 'B2B Suite', + 'Marketplace Suite', + 'Advanced Multi-store', + 'Returns Management (RMA)', + 'Multi-source Inventory', + 'Loyalty system', + 'RBAC (Role-Based Access Control)', + 'Partial Shipment', + 'One page checkout', + ]; + } +}