mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-22 00:09:54 +01:00
Updated Rector to commit 211deb44af8953bc0e67095d64aa45ec0e17d157
211deb44af
[Console] Remove #[Required] on AbstractProcessCommand (#4713)
This commit is contained in:
parent
cd0b3a7cca
commit
580a5566b1
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '6e9378e3bf2a4ae78fb53d93e193be473ffcb5d4';
|
||||
public const PACKAGE_VERSION = '211deb44af8953bc0e67095d64aa45ec0e17d157';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-08-07 21:45:42';
|
||||
public const RELEASE_DATE = '2023-08-08 08:54:16';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -4,25 +4,12 @@ declare (strict_types=1);
|
||||
namespace Rector\Core\Console\Command;
|
||||
|
||||
use Rector\ChangesReporting\Output\ConsoleOutputFormatter;
|
||||
use Rector\Core\Configuration\ConfigurationFactory;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use RectorPrefix202308\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202308\Symfony\Component\Console\Input\InputArgument;
|
||||
use RectorPrefix202308\Symfony\Component\Console\Input\InputOption;
|
||||
use RectorPrefix202308\Symfony\Contracts\Service\Attribute\Required;
|
||||
abstract class AbstractProcessCommand extends Command
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Core\Configuration\ConfigurationFactory
|
||||
*/
|
||||
protected $configurationFactory;
|
||||
/**
|
||||
* @required
|
||||
*/
|
||||
public function autowire(ConfigurationFactory $configurationFactory) : void
|
||||
{
|
||||
$this->configurationFactory = $configurationFactory;
|
||||
}
|
||||
protected function configure() : void
|
||||
{
|
||||
$this->addArgument(Option::SOURCE, InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Files or directories to be upgraded.');
|
||||
|
@ -8,6 +8,7 @@ use Rector\ChangesReporting\Output\JsonOutputFormatter;
|
||||
use Rector\Core\Application\ApplicationFileProcessor;
|
||||
use Rector\Core\Autoloading\AdditionalAutoloader;
|
||||
use Rector\Core\Configuration\ConfigInitializer;
|
||||
use Rector\Core\Configuration\ConfigurationFactory;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Console\ExitCode;
|
||||
use Rector\Core\Console\Output\OutputFormatterCollector;
|
||||
@ -68,7 +69,12 @@ final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessC
|
||||
* @var \Rector\Core\Util\MemoryLimiter
|
||||
*/
|
||||
private $memoryLimiter;
|
||||
public function __construct(AdditionalAutoloader $additionalAutoloader, ChangedFilesDetector $changedFilesDetector, ConfigInitializer $configInitializer, ApplicationFileProcessor $applicationFileProcessor, ProcessResultFactory $processResultFactory, DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator, OutputFormatterCollector $outputFormatterCollector, SymfonyStyle $symfonyStyle, MemoryLimiter $memoryLimiter)
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\ConfigurationFactory
|
||||
*/
|
||||
private $configurationFactory;
|
||||
public function __construct(AdditionalAutoloader $additionalAutoloader, ChangedFilesDetector $changedFilesDetector, ConfigInitializer $configInitializer, ApplicationFileProcessor $applicationFileProcessor, ProcessResultFactory $processResultFactory, DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator, OutputFormatterCollector $outputFormatterCollector, SymfonyStyle $symfonyStyle, MemoryLimiter $memoryLimiter, ConfigurationFactory $configurationFactory)
|
||||
{
|
||||
$this->additionalAutoloader = $additionalAutoloader;
|
||||
$this->changedFilesDetector = $changedFilesDetector;
|
||||
@ -79,6 +85,7 @@ final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessC
|
||||
$this->outputFormatterCollector = $outputFormatterCollector;
|
||||
$this->symfonyStyle = $symfonyStyle;
|
||||
$this->memoryLimiter = $memoryLimiter;
|
||||
$this->configurationFactory = $configurationFactory;
|
||||
parent::__construct();
|
||||
}
|
||||
protected function configure() : void
|
||||
|
@ -8,6 +8,7 @@ use RectorPrefix202308\Clue\React\NDJson\Encoder;
|
||||
use RectorPrefix202308\React\EventLoop\StreamSelectLoop;
|
||||
use RectorPrefix202308\React\Socket\ConnectionInterface;
|
||||
use RectorPrefix202308\React\Socket\TcpConnector;
|
||||
use Rector\Core\Configuration\ConfigurationFactory;
|
||||
use Rector\Core\Util\MemoryLimiter;
|
||||
use Rector\Parallel\WorkerRunner;
|
||||
use RectorPrefix202308\Symfony\Component\Console\Input\InputInterface;
|
||||
@ -33,10 +34,16 @@ final class WorkerCommand extends \Rector\Core\Console\Command\AbstractProcessCo
|
||||
* @var \Rector\Core\Util\MemoryLimiter
|
||||
*/
|
||||
private $memoryLimiter;
|
||||
public function __construct(WorkerRunner $workerRunner, MemoryLimiter $memoryLimiter)
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\ConfigurationFactory
|
||||
*/
|
||||
private $configurationFactory;
|
||||
public function __construct(WorkerRunner $workerRunner, MemoryLimiter $memoryLimiter, ConfigurationFactory $configurationFactory)
|
||||
{
|
||||
$this->workerRunner = $workerRunner;
|
||||
$this->memoryLimiter = $memoryLimiter;
|
||||
$this->configurationFactory = $configurationFactory;
|
||||
parent::__construct();
|
||||
}
|
||||
protected function configure() : void
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit2de9e0e7fdbb90e14135faecd56343a6::getLoader();
|
||||
return ComposerAutoloaderInit24cd621939e1c0be213e3232a0d86dbd::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit2de9e0e7fdbb90e14135faecd56343a6
|
||||
class ComposerAutoloaderInit24cd621939e1c0be213e3232a0d86dbd
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit2de9e0e7fdbb90e14135faecd56343a6
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2de9e0e7fdbb90e14135faecd56343a6', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit24cd621939e1c0be213e3232a0d86dbd', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2de9e0e7fdbb90e14135faecd56343a6', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit24cd621939e1c0be213e3232a0d86dbd', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit24cd621939e1c0be213e3232a0d86dbd::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit24cd621939e1c0be213e3232a0d86dbd::$files;
|
||||
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6
|
||||
class ComposerStaticInit24cd621939e1c0be213e3232a0d86dbd
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3009,9 +3009,9 @@ class ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2de9e0e7fdbb90e14135faecd56343a6::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit24cd621939e1c0be213e3232a0d86dbd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit24cd621939e1c0be213e3232a0d86dbd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit24cd621939e1c0be213e3232a0d86dbd::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user