diff --git a/src/Console/Command/CustomRuleCommand.php b/src/Console/Command/CustomRuleCommand.php deleted file mode 100644 index af97edcce63..00000000000 --- a/src/Console/Command/CustomRuleCommand.php +++ /dev/null @@ -1,34 +0,0 @@ -setName('custom-rule'); - $this->setDescription('[DEPRECATED] Create base of local custom rule with tests'); - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $this->symfonyStyle->error( - 'The "custom-rule" command is deprecated and no longer generates files. Use an AI agent to scaffold a custom rule instead - it handles the setup faster and with less guesswork.' - ); - - return Command::FAILURE; - } -} diff --git a/src/Console/Command/SetupCICommand.php b/src/Console/Command/SetupCICommand.php deleted file mode 100644 index 38d5bc85db5..00000000000 --- a/src/Console/Command/SetupCICommand.php +++ /dev/null @@ -1,34 +0,0 @@ -setName('setup-ci'); - $this->setDescription('[DEPRECATED] Add CI workflow to let Rector work for you'); - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $this->symfonyStyle->error( - 'The "setup-ci" command is deprecated and no longer generates files. Its generic template lacked caching and did not fit most setups. Add a CI workflow explicitly for your use case instead - an AI agent can tailor one to your repository.' - ); - - return Command::FAILURE; - } -} diff --git a/src/DependencyInjection/LazyContainerFactory.php b/src/DependencyInjection/LazyContainerFactory.php index efeee525f90..03754e3ae41 100644 --- a/src/DependencyInjection/LazyContainerFactory.php +++ b/src/DependencyInjection/LazyContainerFactory.php @@ -35,10 +35,8 @@ use Rector\Configuration\ConfigurationRuleFilter; use Rector\Configuration\RenamedClassesDataCollector; use Rector\Console\Command\ComposerBasedCommand; -use Rector\Console\Command\CustomRuleCommand; use Rector\Console\Command\ListRulesCommand; use Rector\Console\Command\ProcessCommand; -use Rector\Console\Command\SetupCICommand; use Rector\Console\Command\ValidateConfigCommand; use Rector\Console\Command\WorkerCommand; use Rector\Console\ConsoleApplication; @@ -159,10 +157,8 @@ private function registerConsole(RectorConfig $rectorConfig): void $rectorConfig->singleton(ProcessCommand::class); $rectorConfig->singleton(WorkerCommand::class); $rectorConfig->singleton(ValidateConfigCommand::class); - $rectorConfig->singleton(SetupCICommand::class); $rectorConfig->singleton(AllRectorRulesProvider::class); $rectorConfig->singleton(ListRulesCommand::class); - $rectorConfig->singleton(CustomRuleCommand::class); $rectorConfig->singleton(ComposerBasedCommand::class); }