mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
Updated Rector to commit 7f2155d5c0058a002790c05cae54b49405e154ac
7f2155d5c0
[DX] add RectorConfig::command() to ease external command registration (#5443)
This commit is contained in:
parent
33f8d9f054
commit
2a79360f1b
@ -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
|
||||
*/
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user