diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index d54de5d240a..5f5a4c1ed8c 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 = '3751c94d26dc1bd8a7a1699f64d0c983dfd11a9f'; + public const PACKAGE_VERSION = '7f2155d5c0058a002790c05cae54b49405e154ac'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-01-07 13:04:44'; + public const RELEASE_DATE = '2024-01-07 12:12:27'; /** * @var int */ diff --git a/src/Config/RectorConfig.php b/src/Config/RectorConfig.php index ee7901834f4..289a221841c 100644 --- a/src/Config/RectorConfig.php +++ b/src/Config/RectorConfig.php @@ -183,6 +183,14 @@ final class RectorConfig extends Container $this->singleton($collectorClass); $this->tag($collectorClass, Collector::class); } + /** + * @param class-string $commandClass + */ + public function command(string $commandClass) : void + { + $this->singleton($commandClass); + $this->tag($commandClass, Command::class); + } public function import(string $filePath) : void { if (\strpos($filePath, '*') !== \false) {