Updated Rector to commit 6edf23f6b6cdc2982618ac311c6b7936d3fdcf16

6edf23f6b6 Added 4 methods into RectorConfigBuilder (#5524)
This commit is contained in:
Tomas Votruba 2024-01-30 16:16:28 +00:00
parent 5d13103f37
commit d54a5a3c50
3 changed files with 27 additions and 3 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '5979c0932fd77f40f601ea37687c466833e83ed7';
public const PACKAGE_VERSION = '6edf23f6b6cdc2982618ac311c6b7936d3fdcf16';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-01-30 14:08:30';
public const RELEASE_DATE = '2024-01-30 17:14:19';
/**
* @var int
*/

View File

@ -125,6 +125,14 @@ final class RectorConfigBuilder
* @var null|PhpVersion::*
*/
private $phpVersion;
/**
* @var string|null
*/
private $symfonyContainerXmlFile;
/**
* @var string|null
*/
private $symfonyContainerPhpFile;
public function __invoke(RectorConfig $rectorConfig) : void
{
$rectorConfig->sets($this->sets);
@ -181,6 +189,12 @@ final class RectorConfigBuilder
} else {
$rectorConfig->disableParallel();
}
if ($this->symfonyContainerXmlFile !== null) {
$rectorConfig->symfonyContainerXml($this->symfonyContainerXmlFile);
}
if ($this->symfonyContainerPhpFile !== null) {
$rectorConfig->symfonyContainerPhp($this->symfonyContainerPhpFile);
}
}
/**
* @param string[] $paths
@ -441,4 +455,14 @@ final class RectorConfigBuilder
$this->phpVersion = $phpVersion;
return $this;
}
public function withSymfonyContainerXml(string $symfonyContainerXmlFile) : self
{
$this->symfonyContainerXmlFile = $symfonyContainerXmlFile;
return $this;
}
public function withSymfonyContainerPhp(string $symfonyContainerPhpFile) : self
{
$this->symfonyContainerPhpFile = $symfonyContainerPhpFile;
return $this;
}
}

View File

@ -14,7 +14,7 @@ $loader = (static function () {
// Restore the backup and ensure the excluded files are properly marked as loaded
$GLOBALS['__composer_autoload_files'] = \array_merge(
$existingComposerAutoloadFiles,
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
);
return $loader;