From 5892f5adb9dbfbcf6ac0551eb5dbde483d6703e5 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 26 Dec 2023 18:33:36 +0000 Subject: [PATCH] Updated Rector to commit ad09d9c37e3e98eff856fcad7c355accad83f6b4 https://github.com/rectorphp/rector-src/commit/ad09d9c37e3e98eff856fcad7c355accad83f6b4 make use of autotagInterface() (#5396) --- src/Application/VersionResolver.php | 4 ++-- src/DependencyInjection/LazyContainerFactory.php | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 75e113f1be6..37c0e7eba75 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '9cebe922f18a2fd07311eab528dd59a33ff17ba4'; + public const PACKAGE_VERSION = 'ad09d9c37e3e98eff856fcad7c355accad83f6b4'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-12-26 19:08:18'; + public const RELEASE_DATE = '2023-12-26 18:31:18'; /** * @var int */ diff --git a/src/DependencyInjection/LazyContainerFactory.php b/src/DependencyInjection/LazyContainerFactory.php index da8b7d7f303..9c7bb85b14a 100644 --- a/src/DependencyInjection/LazyContainerFactory.php +++ b/src/DependencyInjection/LazyContainerFactory.php @@ -262,15 +262,16 @@ final class LazyContainerFactory $inflectorFactory = new InflectorFactory(); return $inflectorFactory->build(); }); - $rectorConfig->tag(ProcessCommand::class, Command::class); - $rectorConfig->tag(WorkerCommand::class, Command::class); - $rectorConfig->tag(SetupCICommand::class, Command::class); - $rectorConfig->tag(ListRulesCommand::class, Command::class); + $rectorConfig->autotagInterface(Command::class); + $rectorConfig->singleton(ProcessCommand::class); + $rectorConfig->singleton(WorkerCommand::class); + $rectorConfig->singleton(SetupCICommand::class); + $rectorConfig->singleton(ListRulesCommand::class); $rectorConfig->when(ListRulesCommand::class)->needs('$rectors')->giveTagged(RectorInterface::class); // dev if (\class_exists(MissingInSetCommand::class)) { - $rectorConfig->tag(MissingInSetCommand::class, Command::class); - $rectorConfig->tag(OutsideAnySetCommand::class, Command::class); + $rectorConfig->singleton(MissingInSetCommand::class); + $rectorConfig->singleton(OutsideAnySetCommand::class); } $rectorConfig->alias(TypeParser::class, BetterTypeParser::class); $rectorConfig->singleton(FileProcessor::class);