Updated Rector to commit 7f2155d5c0058a002790c05cae54b49405e154ac

7f2155d5c0 [DX] add RectorConfig::command() to ease external command registration (#5443)
This commit is contained in:
Tomas Votruba 2024-01-07 12:14:43 +00:00
parent 33f8d9f054
commit 2a79360f1b
2 changed files with 10 additions and 2 deletions

View File

@ -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
*/

View File

@ -183,6 +183,14 @@ final class RectorConfig extends Container
$this->singleton($collectorClass);
$this->tag($collectorClass, Collector::class);
}
/**
* @param class-string<Command> $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) {