mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-18 14:29:42 +01:00
Updated Rector to commit 3751c94d26dc1bd8a7a1699f64d0c983dfd11a9f
3751c94d26
Revert "[DX] Make command default autotag" (#5442)
This commit is contained in:
parent
816ddfc830
commit
33f8d9f054
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '2f5a252ea9bac10994e08623e9371ec132045880';
|
||||
public const PACKAGE_VERSION = '3751c94d26dc1bd8a7a1699f64d0c983dfd11a9f';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-01-07 13:02:42';
|
||||
public const RELEASE_DATE = '2024-01-07 13:04:44';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -24,14 +24,14 @@ use RectorPrefix202401\Webmozart\Assert\Assert;
|
||||
*/
|
||||
final class RectorConfig extends Container
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private const AUTOTAG_INTERFACES = [Command::class];
|
||||
/**
|
||||
* @var array<class-string<RectorInterface>, mixed[]>>
|
||||
*/
|
||||
private $ruleConfigurations = [];
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $autotagInterfaces = [Command::class];
|
||||
/**
|
||||
* @param string[] $paths
|
||||
*/
|
||||
@ -311,6 +311,13 @@ final class RectorConfig extends Container
|
||||
{
|
||||
SimpleParameterProvider::setParameter(Option::COLLECTORS, \false);
|
||||
}
|
||||
/**
|
||||
* @internal Use to add tag on service registrations
|
||||
*/
|
||||
public function autotagInterface(string $interface) : void
|
||||
{
|
||||
$this->autotagInterfaces[] = $interface;
|
||||
}
|
||||
/**
|
||||
* @param string $abstract
|
||||
* @param mixed $concrete
|
||||
@ -318,7 +325,7 @@ final class RectorConfig extends Container
|
||||
public function singleton($abstract, $concrete = null) : void
|
||||
{
|
||||
parent::singleton($abstract, $concrete);
|
||||
foreach (self::AUTOTAG_INTERFACES as $autotagInterface) {
|
||||
foreach ($this->autotagInterfaces as $autotagInterface) {
|
||||
if (!\is_a($abstract, $autotagInterface, \true)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user