mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
Updated Rector to commit 680e8a1e3d5f187e8ea3999f8f78ec35b601da55
680e8a1e3d
[Core] Add , , and parameters to RectorConfig::parallel() method (#2188)
This commit is contained in:
parent
3d30a34d24
commit
7010e0938e
@ -41,10 +41,13 @@ final class RectorConfig extends \Symfony\Component\DependencyInjection\Loader\C
|
||||
$parameters = $this->parameters();
|
||||
$parameters->set(\Rector\Core\Configuration\Option::PARALLEL, \false);
|
||||
}
|
||||
public function parallel() : void
|
||||
public function parallel(int $seconds = 120, int $maxNumberOfProcess = 16, int $jobSize = 20) : void
|
||||
{
|
||||
$parameters = $this->parameters();
|
||||
$parameters->set(\Rector\Core\Configuration\Option::PARALLEL, \true);
|
||||
$parameters->set(\Rector\Core\Configuration\Option::PARALLEL_TIMEOUT_IN_SECONDS, $seconds);
|
||||
$parameters->set(\Rector\Core\Configuration\Option::PARALLEL_MAX_NUMBER_OF_PROCESSES, $maxNumberOfProcess);
|
||||
$parameters->set(\Rector\Core\Configuration\Option::PARALLEL_JOB_SIZE, $jobSize);
|
||||
}
|
||||
/**
|
||||
* @param array<int|string, mixed> $criteria
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'b055a8892749ed11ebf77d5ede4833093846471a';
|
||||
public const PACKAGE_VERSION = '680e8a1e3d5f187e8ea3999f8f78ec35b601da55';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-04-28 19:13:39';
|
||||
public const RELEASE_DATE = '2022-04-28 20:29:13';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -152,14 +152,17 @@ final class Option
|
||||
*/
|
||||
public const PARALLEL_PORT = 'port';
|
||||
/**
|
||||
* @deprecated Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $jobSize parameter
|
||||
* @var string
|
||||
*/
|
||||
public const PARALLEL_JOB_SIZE = 'parallel-job-size';
|
||||
/**
|
||||
* @deprecated Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $maxNumberOfProcess parameter
|
||||
* @var string
|
||||
*/
|
||||
public const PARALLEL_MAX_NUMBER_OF_PROCESSES = 'parallel-max-number-of-processes';
|
||||
/**
|
||||
* @deprecated Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $seconds parameter
|
||||
* @var string
|
||||
*/
|
||||
public const PARALLEL_TIMEOUT_IN_SECONDS = 'parallel-timeout-in-seconds';
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c::getLoader();
|
||||
return ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c
|
||||
class ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0bac522db27f35bd482eac0f52f1143c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticIniteae54a7d6e15d307b7ed9df50f7fc7a4::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit0bac522db27f35bd482eac0f52f1143c::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticIniteae54a7d6e15d307b7ed9df50f7fc7a4::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire0bac522db27f35bd482eac0f52f1143c($fileIdentifier, $file);
|
||||
composerRequireeae54a7d6e15d307b7ed9df50f7fc7a4($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire0bac522db27f35bd482eac0f52f1143c($fileIdentifier, $file)
|
||||
function composerRequireeae54a7d6e15d307b7ed9df50f7fc7a4($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit0bac522db27f35bd482eac0f52f1143c
|
||||
class ComposerStaticIniteae54a7d6e15d307b7ed9df50f7fc7a4
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
@ -3879,9 +3879,9 @@ class ComposerStaticInit0bac522db27f35bd482eac0f52f1143c
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0bac522db27f35bd482eac0f52f1143c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0bac522db27f35bd482eac0f52f1143c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0bac522db27f35bd482eac0f52f1143c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticIniteae54a7d6e15d307b7ed9df50f7fc7a4::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticIniteae54a7d6e15d307b7ed9df50f7fc7a4::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticIniteae54a7d6e15d307b7ed9df50f7fc7a4::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220428\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c', false) && !interface_exists('ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c', false) && !trait_exists('ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c', false)) {
|
||||
spl_autoload_call('RectorPrefix20220428\ComposerAutoloaderInit0bac522db27f35bd482eac0f52f1143c');
|
||||
if (!class_exists('ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4', false) && !interface_exists('ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4', false) && !trait_exists('ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4', false)) {
|
||||
spl_autoload_call('RectorPrefix20220428\ComposerAutoloaderIniteae54a7d6e15d307b7ed9df50f7fc7a4');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220428\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220428\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire0bac522db27f35bd482eac0f52f1143c')) {
|
||||
function composerRequire0bac522db27f35bd482eac0f52f1143c() {
|
||||
return \RectorPrefix20220428\composerRequire0bac522db27f35bd482eac0f52f1143c(...func_get_args());
|
||||
if (!function_exists('composerRequireeae54a7d6e15d307b7ed9df50f7fc7a4')) {
|
||||
function composerRequireeae54a7d6e15d307b7ed9df50f7fc7a4() {
|
||||
return \RectorPrefix20220428\composerRequireeae54a7d6e15d307b7ed9df50f7fc7a4(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user