Updated Rector to commit 133dfe8a52

133dfe8a52 skip build on main
This commit is contained in:
Tomas Votruba 2021-05-19 14:19:33 +00:00
parent 49c139d503
commit 925d4374e0
56 changed files with 172 additions and 168 deletions

View File

@ -46,17 +46,17 @@ use RectorPrefix20210519\Symplify\PackageBuilder\Php\TypeChecker;
use RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
use RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesCaller;
use RectorPrefix20210519\Symplify\PackageBuilder\Strings\StringFormatConverter;
use Symplify\SmartFileSystem\FileSystemFilter;
use Symplify\SmartFileSystem\FileSystemGuard;
use Symplify\SmartFileSystem\Finder\FinderSanitizer;
use Symplify\SmartFileSystem\Json\JsonFileSystem;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\Json\JsonFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$services = $containerConfigurator->services();
$services->defaults()->public()->autowire()->autoconfigure();
$services->load('Rector\\Core\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Rector', __DIR__ . '/../src/Exception', __DIR__ . '/../src/DependencyInjection/CompilerPass', __DIR__ . '/../src/DependencyInjection/Loader', __DIR__ . '/../src/HttpKernel', __DIR__ . '/../src/ValueObject', __DIR__ . '/../src/Bootstrap', __DIR__ . '/../src/PhpParser/Node/CustomNode', __DIR__ . '/../src/functions', __DIR__ . '/../src/constants.php', __DIR__ . '/../src/PhpParser/NodeVisitor/CreatedByRuleNodeVisitor.php']);
$services->alias(\RectorPrefix20210519\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class);
$services->set(\Symplify\SmartFileSystem\FileSystemGuard::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard::class);
$services->set(\RectorPrefix20210519\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class);
$services->set(\PhpParser\ParserFactory::class);
$services->set(\PhpParser\BuilderFactory::class);
@ -67,15 +67,15 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
// symplify/package-builder
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
$services->set(\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
$services->set(\Symplify\SmartFileSystem\FileSystemFilter::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Console\Command\CommandNaming::class);
$services->set(\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Strings\StringFormatConverter::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class);
$services->set(\RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle::class)->factory([\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class), 'create']);
$services->set(\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
$services->set(\PhpParser\NodeVisitor\NodeConnectingVisitor::class);
$services->set(\RectorPrefix20210519\Doctrine\Inflector\Rules\English\InflectorFactory::class);
$services->set(\RectorPrefix20210519\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20210519\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']);

View File

@ -7,7 +7,7 @@ use RectorPrefix20210519\Nette\Caching\Cache;
use RectorPrefix20210519\Nette\Caching\Storages\FileStorage;
use Rector\Core\Configuration\Option;
use RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class NetteCacheFactory
{
/**
@ -18,7 +18,7 @@ final class NetteCacheFactory
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->parameterProvider = $parameterProvider;
$this->smartFileSystem = $smartFileSystem;

View File

@ -8,7 +8,7 @@ use Rector\ChangesReporting\Annotation\RectorsChangelogResolver;
use Rector\ChangesReporting\Contract\Output\OutputFormatterInterface;
use Rector\Core\Configuration\Configuration;
use Rector\Core\ValueObject\ProcessResult;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class JsonOutputFormatter implements \Rector\ChangesReporting\Contract\Output\OutputFormatterInterface
{
/**
@ -27,7 +27,7 @@ final class JsonOutputFormatter implements \Rector\ChangesReporting\Contract\Out
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
*/
private $rectorsChangelogResolver;
public function __construct(\Rector\Core\Configuration\Configuration $configuration, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\ChangesReporting\Annotation\RectorsChangelogResolver $rectorsChangelogResolver)
public function __construct(\Rector\Core\Configuration\Configuration $configuration, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\ChangesReporting\Annotation\RectorsChangelogResolver $rectorsChangelogResolver)
{
$this->configuration = $configuration;
$this->smartFileSystem = $smartFileSystem;

View File

@ -4,7 +4,7 @@ declare (strict_types=1);
namespace Rector\PSR4\Composer;
use RectorPrefix20210519\Symplify\ComposerJsonManipulator\ValueObject\ComposerJsonSection;
use Symplify\SmartFileSystem\Json\JsonFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\Json\JsonFileSystem;
final class PSR4AutoloadPathsProvider
{
/**
@ -15,7 +15,7 @@ final class PSR4AutoloadPathsProvider
* @var \Symplify\SmartFileSystem\Json\JsonFileSystem
*/
private $jsonFileSystem;
public function __construct(\Symplify\SmartFileSystem\Json\JsonFileSystem $jsonFileSystem)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\Json\JsonFileSystem $jsonFileSystem)
{
$this->jsonFileSystem = $jsonFileSystem;
}

View File

@ -11,7 +11,7 @@ use Rector\Core\PhpParser\Printer\BetterStandardPrinter;
use Rector\Core\Provider\CurrentFileProvider;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class FactoryClassPrinter
{
/**
@ -30,7 +30,7 @@ final class FactoryClassPrinter
* @var \Rector\Core\Provider\CurrentFileProvider
*/
private $currentFileProvider;
public function __construct(\Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\Core\Provider\CurrentFileProvider $currentFileProvider)
public function __construct(\Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\Core\Provider\CurrentFileProvider $currentFileProvider)
{
$this->betterStandardPrinter = $betterStandardPrinter;
$this->smartFileSystem = $smartFileSystem;

View File

@ -9,7 +9,7 @@ use Rector\Core\Configuration\Configuration;
use Rector\Core\Contract\Processor\FileProcessorInterface;
use Rector\Core\ValueObject\Application\File;
use Rector\FileFormatter\FileFormatter;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class ApplicationFileProcessor
{
/**
@ -39,7 +39,7 @@ final class ApplicationFileProcessor
/**
* @param FileProcessorInterface[] $fileProcessors
*/
public function __construct(\Rector\Core\Configuration\Configuration $configuration, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\Application\FileDecorator\FileDiffFileDecorator $fileDiffFileDecorator, \Rector\FileFormatter\FileFormatter $fileFormatter, \Rector\Core\Application\FileSystem\RemovedAndAddedFilesProcessor $removedAndAddedFilesProcessor, array $fileProcessors = [])
public function __construct(\Rector\Core\Configuration\Configuration $configuration, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\Application\FileDecorator\FileDiffFileDecorator $fileDiffFileDecorator, \Rector\FileFormatter\FileFormatter $fileFormatter, \Rector\Core\Application\FileSystem\RemovedAndAddedFilesProcessor $removedAndAddedFilesProcessor, array $fileProcessors = [])
{
$this->configuration = $configuration;
$this->smartFileSystem = $smartFileSystem;

View File

@ -6,7 +6,7 @@ namespace Rector\Core\Application\FileSystem;
use Rector\Core\Configuration\Configuration;
use Rector\Core\PhpParser\Printer\NodesWithFileDestinationPrinter;
use RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
/**
* Adds and removes scheduled file
*/
@ -32,7 +32,7 @@ final class RemovedAndAddedFilesProcessor
* @var \Symfony\Component\Console\Style\SymfonyStyle
*/
private $symfonyStyle;
public function __construct(\Rector\Core\Configuration\Configuration $configuration, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Printer\NodesWithFileDestinationPrinter $nodesWithFileDestinationPrinter, \Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollector $removedAndAddedFilesCollector, \RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle)
public function __construct(\Rector\Core\Configuration\Configuration $configuration, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Printer\NodesWithFileDestinationPrinter $nodesWithFileDestinationPrinter, \Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollector $removedAndAddedFilesCollector, \RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle)
{
$this->configuration = $configuration;
$this->smartFileSystem = $smartFileSystem;

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '"46f72ff3a2e4d8c0bfd3d58d9254cbcdef49d369"';
public const PACKAGE_VERSION = '"133dfe8a5220044bc68ec356be4ed45e4383085f"';
/**
* @var string
*/
public const RELEASE_DATE = '2021-05-19 14:07:10';
public const RELEASE_DATE = '2021-05-19 15:09:47';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210519\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

View File

@ -7,7 +7,7 @@ use Rector\Core\Configuration\Option;
use Rector\Core\StaticReflection\DynamicSourceLocatorDecorator;
use RectorPrefix20210519\Symfony\Component\Console\Input\InputInterface;
use RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider;
use Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
/**
* Should it pass autoload files/directories to PHPStan analyzer?
*/
@ -25,7 +25,7 @@ final class AdditionalAutoloader
* @var \Rector\Core\StaticReflection\DynamicSourceLocatorDecorator
*/
private $dynamicSourceLocatorDecorator;
public function __construct(\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard, \RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \Rector\Core\StaticReflection\DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard, \RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \Rector\Core\StaticReflection\DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator)
{
$this->fileSystemGuard = $fileSystemGuard;
$this->parameterProvider = $parameterProvider;

View File

@ -5,7 +5,7 @@ namespace Rector\Core\Bootstrap;
use Rector\Core\ValueObject\Bootstrap\BootstrapConfigs;
use RectorPrefix20210519\Symfony\Component\Console\Input\ArgvInput;
use Symplify\SmartFileSystem\Exception\FileNotFoundException;
use RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException;
use Symplify\SmartFileSystem\SmartFileInfo;
final class RectorConfigsResolver
{
@ -40,7 +40,7 @@ final class RectorConfigsResolver
}
if (!\file_exists($configValue)) {
$message = \sprintf('File "%s" was not found', $configValue);
throw new \Symplify\SmartFileSystem\Exception\FileNotFoundException($message);
throw new \RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException($message);
}
return new \Symplify\SmartFileSystem\SmartFileInfo($configValue);
}

View File

@ -12,8 +12,8 @@ use RectorPrefix20210519\Symfony\Component\Console\Input\InputOption;
use RectorPrefix20210519\Symfony\Component\Console\Output\OutputInterface;
use RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle;
use RectorPrefix20210519\Symplify\PackageBuilder\Console\ShellCode;
use Symplify\SmartFileSystem\FileSystemGuard;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class InitCommand extends \RectorPrefix20210519\Symfony\Component\Console\Command\Command
{
/**
@ -35,7 +35,7 @@ final class InitCommand extends \RectorPrefix20210519\Symfony\Component\Console\
/**
* @param TemplateResolverInterface[] $templateResolvers
*/
public function __construct(\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle, array $templateResolvers)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle, array $templateResolvers)
{
$this->fileSystemGuard = $fileSystemGuard;
$this->smartFileSystem = $smartFileSystem;

View File

@ -9,8 +9,8 @@ use Rector\Core\Configuration\Configuration;
use RectorPrefix20210519\Symfony\Component\Finder\Finder;
use RectorPrefix20210519\Symfony\Component\Finder\SplFileInfo;
use RectorPrefix20210519\Symplify\Skipper\SkipCriteriaResolver\SkippedPathsResolver;
use Symplify\SmartFileSystem\FileSystemFilter;
use Symplify\SmartFileSystem\Finder\FinderSanitizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer;
use Symplify\SmartFileSystem\SmartFileInfo;
/**
* @see \Rector\Core\Tests\FileSystem\FilesFinder\FilesFinderTest
@ -51,7 +51,7 @@ final class FilesFinder
* @var \Nette\Caching\Cache
*/
private $cache;
public function __construct(\Rector\Core\FileSystem\FilesystemTweaker $filesystemTweaker, \Symplify\SmartFileSystem\Finder\FinderSanitizer $finderSanitizer, \Symplify\SmartFileSystem\FileSystemFilter $fileSystemFilter, \RectorPrefix20210519\Symplify\Skipper\SkipCriteriaResolver\SkippedPathsResolver $skippedPathsResolver, \Rector\Core\Configuration\Configuration $configuration, \RectorPrefix20210519\Nette\Caching\Cache $cache)
public function __construct(\Rector\Core\FileSystem\FilesystemTweaker $filesystemTweaker, \RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer $finderSanitizer, \RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter $fileSystemFilter, \RectorPrefix20210519\Symplify\Skipper\SkipCriteriaResolver\SkippedPathsResolver $skippedPathsResolver, \Rector\Core\Configuration\Configuration $configuration, \RectorPrefix20210519\Nette\Caching\Cache $cache)
{
$this->filesystemTweaker = $filesystemTweaker;
$this->finderSanitizer = $finderSanitizer;

View File

@ -4,14 +4,14 @@ declare (strict_types=1);
namespace Rector\Core\FileSystem;
use RectorPrefix20210519\Nette\Utils\Strings;
use Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
final class FilesystemTweaker
{
/**
* @var \Symplify\SmartFileSystem\FileSystemGuard
*/
private $fileSystemGuard;
public function __construct(\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard)
{
$this->fileSystemGuard = $fileSystemGuard;
}

View File

@ -16,7 +16,7 @@ use PhpParser\Parser;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\PhpParser\Printer\BetterStandardPrinter;
use Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class InlineCodeParser
{
/**
@ -55,7 +55,7 @@ final class InlineCodeParser
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, \PhpParser\Parser $parser, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, \PhpParser\Parser $parser, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->betterStandardPrinter = $betterStandardPrinter;
$this->nodeScopeAndMetadataDecorator = $nodeScopeAndMetadataDecorator;

View File

@ -6,7 +6,7 @@ namespace Rector\Core\PhpParser\Parser;
use PhpParser\Node\Stmt;
use PhpParser\Parser as NikicParser;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class Parser
{
/**
@ -21,7 +21,7 @@ final class Parser
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\PhpParser\Parser $nikicParser, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\PhpParser\Parser $nikicParser, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->nikicParser = $nikicParser;
$this->smartFileSystem = $smartFileSystem;

View File

@ -7,7 +7,7 @@ use PhpParser\Node;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor\NodeConnectingVisitor;
use PhpParser\Parser;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class SimplePhpParser
{
/**
@ -18,7 +18,7 @@ final class SimplePhpParser
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\PhpParser\Parser $parser, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\PhpParser\Parser $parser, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->parser = $parser;
$this->smartFileSystem = $smartFileSystem;

View File

@ -8,7 +8,7 @@ use PhpParser\Node\Stmt;
use Rector\Core\PhpParser\Node\CustomNode\FileWithoutNamespace;
use Rector\Core\ValueObject\Application\File;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
/**
* @see \Rector\Core\Tests\PhpParser\Printer\FormatPerservingPrinterTest
*/
@ -22,7 +22,7 @@ final class FormatPerservingPrinter
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->betterStandardPrinter = $betterStandardPrinter;
$this->smartFileSystem = $smartFileSystem;

View File

@ -10,7 +10,7 @@ use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\ReflectionProvider;
use PHPStan\Type\ObjectType;
use Rector\Core\PhpParser\Node\BetterNodeFinder;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class ClassReflectionToAstResolver
{
/**
@ -29,7 +29,7 @@ final class ClassReflectionToAstResolver
* @var \PHPStan\Reflection\ReflectionProvider
*/
private $reflectionProvider;
public function __construct(\PhpParser\Parser $parser, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Node\BetterNodeFinder $betterNodeFinder, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
public function __construct(\PhpParser\Parser $parser, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Node\BetterNodeFinder $betterNodeFinder, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
{
$this->parser = $parser;
$this->smartFileSystem = $smartFileSystem;

View File

@ -22,7 +22,7 @@ use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator;
use Rector\NodeTypeResolver\NodeTypeResolver;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class FunctionLikeReflectionParser
{
/**
@ -53,7 +53,7 @@ final class FunctionLikeReflectionParser
* @var \PHPStan\Reflection\ReflectionProvider
*/
private $reflectionProvider;
public function __construct(\PhpParser\Parser $parser, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \PhpParser\NodeFinder $nodeFinder, \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, \Rector\NodeTypeResolver\NodeTypeResolver $nodeTypeResolver, \Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
public function __construct(\PhpParser\Parser $parser, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \PhpParser\NodeFinder $nodeFinder, \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, \Rector\NodeTypeResolver\NodeTypeResolver $nodeTypeResolver, \Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
{
$this->parser = $parser;
$this->smartFileSystem = $smartFileSystem;

View File

@ -5,7 +5,7 @@ namespace Rector\Core\StaticReflection;
use Rector\Core\FileSystem\PhpFilesFinder;
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
use Symplify\SmartFileSystem\FileSystemFilter;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter;
/**
* @see https://phpstan.org/blog/zero-config-analysis-with-static-reflection
* @see https://github.com/rectorphp/rector/issues/3490
@ -24,7 +24,7 @@ final class DynamicSourceLocatorDecorator
* @var \Rector\Core\FileSystem\PhpFilesFinder
*/
private $phpFilesFinder;
public function __construct(\Symplify\SmartFileSystem\FileSystemFilter $fileSystemFilter, \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider $dynamicSourceLocatorProvider, \Rector\Core\FileSystem\PhpFilesFinder $phpFilesFinder)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter $fileSystemFilter, \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider $dynamicSourceLocatorProvider, \Rector\Core\FileSystem\PhpFilesFinder $phpFilesFinder)
{
$this->fileSystemFilter = $fileSystemFilter;
$this->dynamicSourceLocatorProvider = $dynamicSourceLocatorProvider;

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e::getLoader();
return ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221::getLoader();

View File

@ -1429,6 +1429,16 @@ return array(
'RectorPrefix20210519\\Symplify\\Skipper\\Skipper\\SkipSkipper' => $vendorDir . '/symplify/skipper/src/Skipper/SkipSkipper.php',
'RectorPrefix20210519\\Symplify\\Skipper\\Skipper\\Skipper' => $vendorDir . '/symplify/skipper/src/Skipper/Skipper.php',
'RectorPrefix20210519\\Symplify\\Skipper\\ValueObject\\Option' => $vendorDir . '/symplify/skipper/src/ValueObject/Option.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Exception\\DirectoryNotFoundException' => $vendorDir . '/symplify/smart-file-system/src/Exception/DirectoryNotFoundException.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Exception\\FileNotFoundException' => $vendorDir . '/symplify/smart-file-system/src/Exception/FileNotFoundException.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\FileSystemFilter' => $vendorDir . '/symplify/smart-file-system/src/FileSystemFilter.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\FileSystemGuard' => $vendorDir . '/symplify/smart-file-system/src/FileSystemGuard.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Finder\\FinderSanitizer' => $vendorDir . '/symplify/smart-file-system/src/Finder/FinderSanitizer.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Finder\\SmartFinder' => $vendorDir . '/symplify/smart-file-system/src/Finder/SmartFinder.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Json\\JsonFileSystem' => $vendorDir . '/symplify/smart-file-system/src/Json/JsonFileSystem.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Normalizer\\PathNormalizer' => $vendorDir . '/symplify/smart-file-system/src/Normalizer/PathNormalizer.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\SmartFileInfo' => $vendorDir . '/symplify/smart-file-system/src/SmartFileInfo.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\SmartFileSystem' => $vendorDir . '/symplify/smart-file-system/src/SmartFileSystem.php',
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\Bundle\\SymplifyKernelBundle' => $vendorDir . '/symplify/symplify-kernel/src/Bundle/SymplifyKernelBundle.php',
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\DependencyInjection\\Extension\\SymplifyKernelExtension' => $vendorDir . '/symplify/symplify-kernel/src/DependencyInjection/Extension/SymplifyKernelExtension.php',
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\Exception\\BootException' => $vendorDir . '/symplify/symplify-kernel/src/Exception/BootException.php',
@ -3443,16 +3453,6 @@ return array(
'Symplify\\RuleDocGenerator\\ValueObject\\CodeSample\\ConfiguredCodeSample' => $vendorDir . '/symplify/rule-doc-generator-contracts/src/ValueObject/CodeSample/ConfiguredCodeSample.php',
'Symplify\\RuleDocGenerator\\ValueObject\\CodeSample\\ExtraFileCodeSample' => $vendorDir . '/symplify/rule-doc-generator-contracts/src/ValueObject/CodeSample/ExtraFileCodeSample.php',
'Symplify\\RuleDocGenerator\\ValueObject\\RuleDefinition' => $vendorDir . '/symplify/rule-doc-generator-contracts/src/ValueObject/RuleDefinition.php',
'Symplify\\SmartFileSystem\\Exception\\DirectoryNotFoundException' => $vendorDir . '/symplify/smart-file-system/src/Exception/DirectoryNotFoundException.php',
'Symplify\\SmartFileSystem\\Exception\\FileNotFoundException' => $vendorDir . '/symplify/smart-file-system/src/Exception/FileNotFoundException.php',
'Symplify\\SmartFileSystem\\FileSystemFilter' => $vendorDir . '/symplify/smart-file-system/src/FileSystemFilter.php',
'Symplify\\SmartFileSystem\\FileSystemGuard' => $vendorDir . '/symplify/smart-file-system/src/FileSystemGuard.php',
'Symplify\\SmartFileSystem\\Finder\\FinderSanitizer' => $vendorDir . '/symplify/smart-file-system/src/Finder/FinderSanitizer.php',
'Symplify\\SmartFileSystem\\Finder\\SmartFinder' => $vendorDir . '/symplify/smart-file-system/src/Finder/SmartFinder.php',
'Symplify\\SmartFileSystem\\Json\\JsonFileSystem' => $vendorDir . '/symplify/smart-file-system/src/Json/JsonFileSystem.php',
'Symplify\\SmartFileSystem\\Normalizer\\PathNormalizer' => $vendorDir . '/symplify/smart-file-system/src/Normalizer/PathNormalizer.php',
'Symplify\\SmartFileSystem\\SmartFileInfo' => $vendorDir . '/symplify/smart-file-system/src/SmartFileInfo.php',
'Symplify\\SmartFileSystem\\SmartFileSystem' => $vendorDir . '/symplify/smart-file-system/src/SmartFileSystem.php',
'Symplify\\SymfonyPhpConfig\\Exception\\ValueObjectException' => $vendorDir . '/symplify/symfony-php-config/src/Exception/ValueObjectException.php',
'Symplify\\SymfonyPhpConfig\\Reflection\\ArgumentAndParameterFactory' => $vendorDir . '/symplify/symfony-php-config/src/Reflection/ArgumentAndParameterFactory.php',
'Symplify\\SymfonyPhpConfig\\ValueObjectInliner' => $vendorDir . '/symplify/symfony-php-config/src/ValueObjectInliner.php',

View File

@ -7,7 +7,6 @@ $baseDir = dirname($vendorDir);
return array(
'Symplify\\SymfonyPhpConfig\\' => array($vendorDir . '/symplify/symfony-php-config/src'),
'Symplify\\SmartFileSystem\\' => array($vendorDir . '/symplify/smart-file-system/src'),
'Symplify\\RuleDocGenerator\\' => array($vendorDir . '/symplify/rule-doc-generator-contracts/src'),
'Ssch\\TYPO3Rector\\PHPStan\\' => array($vendorDir . '/ssch/typo3-rector/utils/phpstan/src'),
'Ssch\\TYPO3Rector\\' => array($vendorDir . '/ssch/typo3-rector/src'),
@ -24,6 +23,7 @@ return array(
'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules'),
'RectorPrefix20210519\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\' => array($vendorDir . '/symplify/symplify-kernel/src'),
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\' => array($vendorDir . '/symplify/smart-file-system/src'),
'RectorPrefix20210519\\Symplify\\Skipper\\' => array($vendorDir . '/symplify/skipper/src'),
'RectorPrefix20210519\\Symplify\\SimplePhpDocParser\\' => array($vendorDir . '/symplify/simple-php-doc-parser/src'),
'RectorPrefix20210519\\Symplify\\PackageBuilder\\' => array($vendorDir . '/symplify/package-builder/src'),

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e
class ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit3670e413fede6d5acf44836c228c967e::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit1f9fb0606db39678e1e1f62f7a25c221::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit3670e413fede6d5acf44836c228c967e::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit1f9fb0606db39678e1e1f62f7a25c221::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire3670e413fede6d5acf44836c228c967e($fileIdentifier, $file);
composerRequire1f9fb0606db39678e1e1f62f7a25c221($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire3670e413fede6d5acf44836c228c967e($fileIdentifier, $file)
function composerRequire1f9fb0606db39678e1e1f62f7a25c221($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit3670e413fede6d5acf44836c228c967e
class ComposerStaticInit1f9fb0606db39678e1e1f62f7a25c221
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -27,7 +27,6 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
'S' =>
array (
'Symplify\\SymfonyPhpConfig\\' => 26,
'Symplify\\SmartFileSystem\\' => 25,
'Symplify\\RuleDocGenerator\\' => 26,
'Ssch\\TYPO3Rector\\PHPStan\\' => 25,
'Ssch\\TYPO3Rector\\' => 17,
@ -47,6 +46,7 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
'Rector\\' => 7,
'RectorPrefix20210519\\Webmozart\\Assert\\' => 38,
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\' => 45,
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\' => 46,
'RectorPrefix20210519\\Symplify\\Skipper\\' => 38,
'RectorPrefix20210519\\Symplify\\SimplePhpDocParser\\' => 49,
'RectorPrefix20210519\\Symplify\\PackageBuilder\\' => 45,
@ -103,10 +103,6 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
array (
0 => __DIR__ . '/..' . '/symplify/symfony-php-config/src',
),
'Symplify\\SmartFileSystem\\' =>
array (
0 => __DIR__ . '/..' . '/symplify/smart-file-system/src',
),
'Symplify\\RuleDocGenerator\\' =>
array (
0 => __DIR__ . '/..' . '/symplify/rule-doc-generator-contracts/src',
@ -172,6 +168,10 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
array (
0 => __DIR__ . '/..' . '/symplify/symplify-kernel/src',
),
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\' =>
array (
0 => __DIR__ . '/..' . '/symplify/smart-file-system/src',
),
'RectorPrefix20210519\\Symplify\\Skipper\\' =>
array (
0 => __DIR__ . '/..' . '/symplify/skipper/src',
@ -1778,6 +1778,16 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
'RectorPrefix20210519\\Symplify\\Skipper\\Skipper\\SkipSkipper' => __DIR__ . '/..' . '/symplify/skipper/src/Skipper/SkipSkipper.php',
'RectorPrefix20210519\\Symplify\\Skipper\\Skipper\\Skipper' => __DIR__ . '/..' . '/symplify/skipper/src/Skipper/Skipper.php',
'RectorPrefix20210519\\Symplify\\Skipper\\ValueObject\\Option' => __DIR__ . '/..' . '/symplify/skipper/src/ValueObject/Option.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Exception\\DirectoryNotFoundException' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Exception/DirectoryNotFoundException.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Exception\\FileNotFoundException' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Exception/FileNotFoundException.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\FileSystemFilter' => __DIR__ . '/..' . '/symplify/smart-file-system/src/FileSystemFilter.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\FileSystemGuard' => __DIR__ . '/..' . '/symplify/smart-file-system/src/FileSystemGuard.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Finder\\FinderSanitizer' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Finder/FinderSanitizer.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Finder\\SmartFinder' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Finder/SmartFinder.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Json\\JsonFileSystem' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Json/JsonFileSystem.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\Normalizer\\PathNormalizer' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Normalizer/PathNormalizer.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\SmartFileInfo' => __DIR__ . '/..' . '/symplify/smart-file-system/src/SmartFileInfo.php',
'RectorPrefix20210519\\Symplify\\SmartFileSystem\\SmartFileSystem' => __DIR__ . '/..' . '/symplify/smart-file-system/src/SmartFileSystem.php',
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\Bundle\\SymplifyKernelBundle' => __DIR__ . '/..' . '/symplify/symplify-kernel/src/Bundle/SymplifyKernelBundle.php',
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\DependencyInjection\\Extension\\SymplifyKernelExtension' => __DIR__ . '/..' . '/symplify/symplify-kernel/src/DependencyInjection/Extension/SymplifyKernelExtension.php',
'RectorPrefix20210519\\Symplify\\SymplifyKernel\\Exception\\BootException' => __DIR__ . '/..' . '/symplify/symplify-kernel/src/Exception/BootException.php',
@ -3792,16 +3802,6 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
'Symplify\\RuleDocGenerator\\ValueObject\\CodeSample\\ConfiguredCodeSample' => __DIR__ . '/..' . '/symplify/rule-doc-generator-contracts/src/ValueObject/CodeSample/ConfiguredCodeSample.php',
'Symplify\\RuleDocGenerator\\ValueObject\\CodeSample\\ExtraFileCodeSample' => __DIR__ . '/..' . '/symplify/rule-doc-generator-contracts/src/ValueObject/CodeSample/ExtraFileCodeSample.php',
'Symplify\\RuleDocGenerator\\ValueObject\\RuleDefinition' => __DIR__ . '/..' . '/symplify/rule-doc-generator-contracts/src/ValueObject/RuleDefinition.php',
'Symplify\\SmartFileSystem\\Exception\\DirectoryNotFoundException' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Exception/DirectoryNotFoundException.php',
'Symplify\\SmartFileSystem\\Exception\\FileNotFoundException' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Exception/FileNotFoundException.php',
'Symplify\\SmartFileSystem\\FileSystemFilter' => __DIR__ . '/..' . '/symplify/smart-file-system/src/FileSystemFilter.php',
'Symplify\\SmartFileSystem\\FileSystemGuard' => __DIR__ . '/..' . '/symplify/smart-file-system/src/FileSystemGuard.php',
'Symplify\\SmartFileSystem\\Finder\\FinderSanitizer' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Finder/FinderSanitizer.php',
'Symplify\\SmartFileSystem\\Finder\\SmartFinder' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Finder/SmartFinder.php',
'Symplify\\SmartFileSystem\\Json\\JsonFileSystem' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Json/JsonFileSystem.php',
'Symplify\\SmartFileSystem\\Normalizer\\PathNormalizer' => __DIR__ . '/..' . '/symplify/smart-file-system/src/Normalizer/PathNormalizer.php',
'Symplify\\SmartFileSystem\\SmartFileInfo' => __DIR__ . '/..' . '/symplify/smart-file-system/src/SmartFileInfo.php',
'Symplify\\SmartFileSystem\\SmartFileSystem' => __DIR__ . '/..' . '/symplify/smart-file-system/src/SmartFileSystem.php',
'Symplify\\SymfonyPhpConfig\\Exception\\ValueObjectException' => __DIR__ . '/..' . '/symplify/symfony-php-config/src/Exception/ValueObjectException.php',
'Symplify\\SymfonyPhpConfig\\Reflection\\ArgumentAndParameterFactory' => __DIR__ . '/..' . '/symplify/symfony-php-config/src/Reflection/ArgumentAndParameterFactory.php',
'Symplify\\SymfonyPhpConfig\\ValueObjectInliner' => __DIR__ . '/..' . '/symplify/symfony-php-config/src/ValueObjectInliner.php',
@ -3812,9 +3812,9 @@ class ComposerStaticInit3670e413fede6d5acf44836c228c967e
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit3670e413fede6d5acf44836c228c967e::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit3670e413fede6d5acf44836c228c967e::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit3670e413fede6d5acf44836c228c967e::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit1f9fb0606db39678e1e1f62f7a25c221::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit1f9fb0606db39678e1e1f62f7a25c221::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit1f9fb0606db39678e1e1f62f7a25c221::$classMap;
}, null, ClassLoader::class);
}

View File

@ -4417,7 +4417,7 @@
"installation-source": "dist",
"autoload": {
"psr-4": {
"Symplify\\SmartFileSystem\\": "src"
"RectorPrefix20210519\\Symplify\\SmartFileSystem\\": "src"
}
},
"notification-url": "https:\/\/packagist.org\/downloads\/",

View File

@ -7,7 +7,7 @@ use Iterator;
use Rector\FileSystemRector\ValueObject\AddedFileWithContent;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class FormControlToControllerAndFormTypeRectorTest extends \Rector\Testing\PHPUnit\AbstractRectorTestCase
{
/**
@ -23,7 +23,7 @@ final class FormControlToControllerAndFormTypeRectorTest extends \Rector\Testing
*/
public function provideData() : \Iterator
{
$smartFileSystem = new \Symplify\SmartFileSystem\SmartFileSystem();
$smartFileSystem = new \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem();
(yield [new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/Fixture/fixture.php.inc'), new \Rector\FileSystemRector\ValueObject\AddedFileWithContent('src/Controller/SomeFormController.php', $smartFileSystem->readFile(__DIR__ . '/Source/extra_file.php'))]);
}
public function provideConfigFilePath() : string

View File

@ -7,7 +7,7 @@ use Iterator;
use Rector\FileSystemRector\ValueObject\AddedFileWithContent;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class RenameTesterTestToPHPUnitToTestFileRectorTest extends \Rector\Testing\PHPUnit\AbstractRectorTestCase
{
/**
@ -23,7 +23,7 @@ final class RenameTesterTestToPHPUnitToTestFileRectorTest extends \Rector\Testin
*/
public function provideData() : \Iterator
{
$smartFileSystem = new \Symplify\SmartFileSystem\SmartFileSystem();
$smartFileSystem = new \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem();
(yield [new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/Source/SomeCase.phpt'), new \Rector\FileSystemRector\ValueObject\AddedFileWithContent($this->getFixtureTempDirectory() . '/SomeCaseTest.php', $smartFileSystem->readFile(__DIR__ . '/Source/SomeCase.phpt'))]);
}
public function provideConfigFilePath() : string

View File

@ -6,7 +6,7 @@ namespace RectorPrefix20210519;
use Rector\Core\Configuration\Option;
use Rector\Core\NonPhpFile\Rector\RenameClassNonPhpRector;
use RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters();
$parameters->set(\Rector\Core\Configuration\Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER, null);
@ -14,5 +14,5 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
$services->defaults()->public()->autowire()->autoconfigure();
$services->load('Rector\\Symfony\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/{Rector,ValueObject}']);
$services->set(\Rector\Core\NonPhpFile\Rector\RenameClassNonPhpRector::class);
$services->set(\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem::class);
};

View File

@ -5,7 +5,7 @@ namespace Rector\Symfony\Composer;
use RectorPrefix20210519\Nette\Utils\Strings;
use RectorPrefix20210519\Symplify\ComposerJsonManipulator\ComposerJsonFactory;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class ComposerNamespaceMatcher
{
/**
@ -16,7 +16,7 @@ final class ComposerNamespaceMatcher
* @var \Symplify\ComposerJsonManipulator\ComposerJsonFactory
*/
private $composerJsonFactory;
public function __construct(\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symplify\ComposerJsonManipulator\ComposerJsonFactory $composerJsonFactory)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symplify\ComposerJsonManipulator\ComposerJsonFactory $composerJsonFactory)
{
$this->smartFileSystem = $smartFileSystem;
$this->composerJsonFactory = $composerJsonFactory;

View File

@ -14,7 +14,7 @@ use Rector\Symfony\ValueObject\ClassName;
use Rector\Symfony\ValueObject\ConstantNameAndValue;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ExtraFileCodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
/**
* @see https://tomasvotruba.com/blog/2020/12/21/5-new-combos-opened-by-symfony-52-and-php-80/
*
@ -46,7 +46,7 @@ final class ExtractAttributeRouteNameConstantsRector extends \Rector\Core\Rector
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\Rector\Symfony\NodeFactory\RouteNameClassFactory $routeNameClassFactory, \Rector\Symfony\ConstantNameAndValueMatcher $constantNameAndValueMatcher, \Rector\Symfony\ConstantNameAndValueResolver $constantNameAndValueResolver, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\Rector\Symfony\NodeFactory\RouteNameClassFactory $routeNameClassFactory, \Rector\Symfony\ConstantNameAndValueMatcher $constantNameAndValueMatcher, \Rector\Symfony\ConstantNameAndValueResolver $constantNameAndValueResolver, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->routeNameClassFactory = $routeNameClassFactory;
$this->constantNameAndValueMatcher = $constantNameAndValueMatcher;

View File

@ -11,7 +11,7 @@ use Rector\Symfony\ValueObject\ServiceMap\ServiceMap;
use Rector\Symfony\ValueObject\Tag;
use Rector\Symfony\ValueObject\Tag\EventListenerTag;
use SimpleXMLElement;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class ServiceMapFactory
{
/**
@ -22,7 +22,7 @@ final class ServiceMapFactory
* @var \Symplify\SmartFileSystem\SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->smartFileSystem = $smartFileSystem;
}

View File

@ -21,8 +21,8 @@ if (!class_exists('SomeTestCase', false) && !interface_exists('SomeTestCase', fa
if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) {
spl_autoload_call('RectorPrefix20210519\CheckoutEntityFactory');
}
if (!class_exists('ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e', false) && !interface_exists('ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e', false) && !trait_exists('ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e', false)) {
spl_autoload_call('RectorPrefix20210519\ComposerAutoloaderInit3670e413fede6d5acf44836c228c967e');
if (!class_exists('ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221', false) && !interface_exists('ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221', false) && !trait_exists('ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221', false)) {
spl_autoload_call('RectorPrefix20210519\ComposerAutoloaderInit1f9fb0606db39678e1e1f62f7a25c221');
}
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
spl_autoload_call('RectorPrefix20210519\Doctrine\Inflector\Inflector');
@ -92,9 +92,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210519\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire3670e413fede6d5acf44836c228c967e')) {
function composerRequire3670e413fede6d5acf44836c228c967e() {
return \RectorPrefix20210519\composerRequire3670e413fede6d5acf44836c228c967e(...func_get_args());
if (!function_exists('composerRequire1f9fb0606db39678e1e1f62f7a25c221')) {
function composerRequire1f9fb0606db39678e1e1f62f7a25c221() {
return \RectorPrefix20210519\composerRequire1f9fb0606db39678e1e1f62f7a25c221(...func_get_args());
}
}
if (!function_exists('parseArgs')) {

View File

@ -24,7 +24,7 @@ use Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddCo
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
/**
* @changelog https://docs.typo3.org/m/typo3/reference-coreapi/9.5/en-us/ApiOverview/CommandControllers/Index.html
* @see \Ssch\TYPO3Rector\Tests\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommandRector\ExtbaseCommandControllerToSymfonyCommandRectorTest
@ -70,7 +70,7 @@ CODE_SAMPLE;
* @var \Rector\Core\Configuration\Configuration
*/
private $configuration;
public function __construct(\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Parser\Parser $parser, \Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddArgumentToSymfonyCommandRector $addArgumentToSymfonyCommandRector, \Ssch\TYPO3Rector\Helper\FilesFinder $filesFinder, \Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddCommandsToReturnRector $addCommandsToReturnRector, \Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollector $removedAndAddedFilesCollector, \PhpParser\Parser $nikicParser, \Rector\Core\Configuration\Configuration $configuration)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Parser\Parser $parser, \Rector\Core\PhpParser\Printer\BetterStandardPrinter $betterStandardPrinter, \Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddArgumentToSymfonyCommandRector $addArgumentToSymfonyCommandRector, \Ssch\TYPO3Rector\Helper\FilesFinder $filesFinder, \Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddCommandsToReturnRector $addCommandsToReturnRector, \Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollector $removedAndAddedFilesCollector, \PhpParser\Parser $nikicParser, \Rector\Core\Configuration\Configuration $configuration)
{
$this->smartFileSystem = $smartFileSystem;
$this->parser = $parser;

View File

@ -10,7 +10,7 @@ use RectorPrefix20210519\Symplify\ComposerJsonManipulator\ValueObject\Option;
use RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
use RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider;
use RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesCaller;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
use function RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service;
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters();
@ -18,7 +18,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
$services = $containerConfigurator->services();
$services->defaults()->public()->autowire()->autoconfigure();
$services->load('RectorPrefix20210519\Symplify\\ComposerJsonManipulator\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Bundle']);
$services->set(\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->args([\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20210519\Symfony\Component\DependencyInjection\ContainerInterface::class)]);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class);

View File

@ -9,7 +9,7 @@ use RectorPrefix20210519\Symplify\ComposerJsonManipulator\Json\JsonInliner;
use RectorPrefix20210519\Symplify\ComposerJsonManipulator\ValueObject\ComposerJson;
use RectorPrefix20210519\Symplify\PackageBuilder\Configuration\StaticEolConfiguration;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
/**
* @see \Symplify\MonorepoBuilder\Tests\FileSystem\JsonFileManager\JsonFileManagerTest
*/
@ -31,7 +31,7 @@ final class JsonFileManager
* @var mixed[]
*/
private $cachedJSONFiles = [];
public function __construct(\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symplify\ComposerJsonManipulator\Json\JsonCleaner $jsonCleaner, \RectorPrefix20210519\Symplify\ComposerJsonManipulator\Json\JsonInliner $jsonInliner)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symplify\ComposerJsonManipulator\Json\JsonCleaner $jsonCleaner, \RectorPrefix20210519\Symplify\ComposerJsonManipulator\Json\JsonInliner $jsonInliner)
{
$this->smartFileSystem = $smartFileSystem;
$this->jsonCleaner = $jsonCleaner;

View File

@ -7,7 +7,7 @@ use Iterator;
use RectorPrefix20210519\Nette\Utils\Strings;
use RectorPrefix20210519\Symfony\Component\Finder\Finder;
use RectorPrefix20210519\Symfony\Component\Finder\SplFileInfo;
use Symplify\SmartFileSystem\Exception\FileNotFoundException;
use RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException;
use Symplify\SmartFileSystem\SmartFileInfo;
use RectorPrefix20210519\Symplify\SymplifyKernel\Exception\ShouldNotHappenException;
/**
@ -57,7 +57,7 @@ final class StaticFixtureFinder
try {
$smartFileInfo = new \Symplify\SmartFileSystem\SmartFileInfo($fileInfo->getRealPath());
(yield [$smartFileInfo]);
} catch (\Symplify\SmartFileSystem\Exception\FileNotFoundException $fileNotFoundException) {
} catch (\RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException $fileNotFoundException) {
}
}
}
@ -71,7 +71,7 @@ final class StaticFixtureFinder
try {
$smartFileInfo = new \Symplify\SmartFileSystem\SmartFileInfo($fileInfo->getRealPath());
(yield $fileInfo->getRelativePathname() => [$smartFileInfo]);
} catch (\Symplify\SmartFileSystem\Exception\FileNotFoundException $e) {
} catch (\RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException $e) {
}
}
}

View File

@ -4,7 +4,7 @@ declare (strict_types=1);
namespace RectorPrefix20210519\Symplify\EasyTesting\DataProvider;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class StaticFixtureUpdater
{
public static function updateFixtureContent(\Symplify\SmartFileSystem\SmartFileInfo $originalFileInfo, string $changedContent, \Symplify\SmartFileSystem\SmartFileInfo $fixtureFileInfo) : void
@ -22,9 +22,9 @@ final class StaticFixtureUpdater
}
self::getSmartFileSystem()->dumpFile($expectedFixtureFileInfo->getRealPath(), $newOriginalContent);
}
private static function getSmartFileSystem() : \Symplify\SmartFileSystem\SmartFileSystem
private static function getSmartFileSystem() : \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem
{
return new \Symplify\SmartFileSystem\SmartFileSystem();
return new \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem();
}
private static function resolveNewFixtureContent(\Symplify\SmartFileSystem\SmartFileInfo $originalFileInfo, string $changedContent) : string
{

View File

@ -4,7 +4,7 @@ declare (strict_types=1);
namespace RectorPrefix20210519\Symplify\EasyTesting\Finder;
use RectorPrefix20210519\Symfony\Component\Finder\Finder;
use Symplify\SmartFileSystem\Finder\FinderSanitizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer;
use Symplify\SmartFileSystem\SmartFileInfo;
final class FixtureFinder
{
@ -12,7 +12,7 @@ final class FixtureFinder
* @var FinderSanitizer
*/
private $finderSanitizer;
public function __construct(\Symplify\SmartFileSystem\Finder\FinderSanitizer $finderSanitizer)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer $finderSanitizer)
{
$this->finderSanitizer = $finderSanitizer;
}

View File

@ -5,7 +5,7 @@ namespace RectorPrefix20210519\Symplify\EasyTesting\PHPUnit\Behavior;
use RectorPrefix20210519\Symfony\Component\Finder\Finder;
use RectorPrefix20210519\Symplify\EasyTesting\ValueObject\ExpectedAndOutputFileInfoPair;
use Symplify\SmartFileSystem\Finder\FinderSanitizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer;
use Symplify\SmartFileSystem\SmartFileInfo;
/**
* Use only in "\PHPUnit\Framework\TestCase"
@ -38,7 +38,7 @@ trait DirectoryAssertableTrait
{
$firstDirectoryFinder = new \RectorPrefix20210519\Symfony\Component\Finder\Finder();
$firstDirectoryFinder->files()->in($directory);
$finderSanitizer = new \Symplify\SmartFileSystem\Finder\FinderSanitizer();
$finderSanitizer = new \RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer();
return $finderSanitizer->sanitize($firstDirectoryFinder);
}
/**

View File

@ -9,7 +9,7 @@ use RectorPrefix20210519\Symplify\EasyTesting\ValueObject\InputFileInfoAndExpect
use RectorPrefix20210519\Symplify\EasyTesting\ValueObject\InputFileInfoAndExpectedFileInfo;
use RectorPrefix20210519\Symplify\EasyTesting\ValueObject\SplitLine;
use Symplify\SmartFileSystem\SmartFileInfo;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
final class StaticFixtureSplitter
{
/**
@ -50,7 +50,7 @@ final class StaticFixtureSplitter
public static function createTemporaryFileInfo(\Symplify\SmartFileSystem\SmartFileInfo $fixtureSmartFileInfo, string $prefix, string $fileContent) : \Symplify\SmartFileSystem\SmartFileInfo
{
$temporaryFilePath = self::createTemporaryPathWithPrefix($fixtureSmartFileInfo, $prefix);
$smartFileSystem = new \Symplify\SmartFileSystem\SmartFileSystem();
$smartFileSystem = new \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem();
$smartFileSystem->dumpFile($temporaryFilePath, $fileContent);
return new \Symplify\SmartFileSystem\SmartFileInfo($temporaryFilePath);
}

View File

@ -7,9 +7,9 @@ use RectorPrefix20210519\Symfony\Component\Console\Command\Command;
use RectorPrefix20210519\Symfony\Component\Console\Input\InputOption;
use RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle;
use RectorPrefix20210519\Symplify\PackageBuilder\ValueObject\Option;
use Symplify\SmartFileSystem\FileSystemGuard;
use Symplify\SmartFileSystem\Finder\SmartFinder;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\SmartFinder;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
abstract class AbstractSymplifyCommand extends \RectorPrefix20210519\Symfony\Component\Console\Command\Command
{
/**
@ -36,7 +36,7 @@ abstract class AbstractSymplifyCommand extends \RectorPrefix20210519\Symfony\Com
/**
* @required
*/
public function autowireAbstractSymplifyCommand(\RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Symplify\SmartFileSystem\Finder\SmartFinder $smartFinder, \Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard) : void
public function autowireAbstractSymplifyCommand(\RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \RectorPrefix20210519\Symplify\SmartFileSystem\Finder\SmartFinder $smartFinder, \RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard) : void
{
$this->symfonyStyle = $symfonyStyle;
$this->smartFileSystem = $smartFileSystem;

View File

@ -6,7 +6,7 @@ namespace RectorPrefix20210519;
use RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use RectorPrefix20210519\Symplify\PackageBuilder\Reflection\ClassLikeExistenceChecker;
use RectorPrefix20210519\Symplify\Skipper\ValueObject\Option;
use Symplify\SmartFileSystem\Normalizer\PathNormalizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\Normalizer\PathNormalizer;
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters();
$parameters->set(\RectorPrefix20210519\Symplify\Skipper\ValueObject\Option::SKIP, []);
@ -15,5 +15,5 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
$services->defaults()->public()->autowire()->autoconfigure();
$services->load('RectorPrefix20210519\Symplify\\Skipper\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Bundle', __DIR__ . '/../src/HttpKernel', __DIR__ . '/../src/ValueObject']);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Reflection\ClassLikeExistenceChecker::class);
$services->set(\Symplify\SmartFileSystem\Normalizer\PathNormalizer::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\Normalizer\PathNormalizer::class);
};

View File

@ -6,7 +6,7 @@ namespace RectorPrefix20210519\Symplify\Skipper\SkipCriteriaResolver;
use RectorPrefix20210519\Nette\Utils\Strings;
use RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider;
use RectorPrefix20210519\Symplify\Skipper\ValueObject\Option;
use Symplify\SmartFileSystem\Normalizer\PathNormalizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\Normalizer\PathNormalizer;
/**
* @see \Symplify\Skipper\Tests\SkipCriteriaResolver\SkippedPathsResolver\SkippedPathsResolverTest
*/
@ -24,7 +24,7 @@ final class SkippedPathsResolver
* @var PathNormalizer
*/
private $pathNormalizer;
public function __construct(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \Symplify\SmartFileSystem\Normalizer\PathNormalizer $pathNormalizer)
public function __construct(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20210519\Symplify\SmartFileSystem\Normalizer\PathNormalizer $pathNormalizer)
{
$this->parameterProvider = $parameterProvider;
$this->pathNormalizer = $pathNormalizer;

View File

@ -14,12 +14,12 @@
},
"autoload": {
"psr-4": {
"Symplify\\SmartFileSystem\\": "src"
"RectorPrefix20210519\\Symplify\\SmartFileSystem\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Symplify\\SmartFileSystem\\Tests\\": "tests"
"RectorPrefix20210519\\Symplify\\SmartFileSystem\\Tests\\": "tests"
}
},
"extra": {

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem\Exception;
namespace RectorPrefix20210519\Symplify\SmartFileSystem\Exception;
use Exception;
final class DirectoryNotFoundException extends \Exception

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem\Exception;
namespace RectorPrefix20210519\Symplify\SmartFileSystem\Exception;
use Exception;
final class FileNotFoundException extends \Exception

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem;
namespace RectorPrefix20210519\Symplify\SmartFileSystem;
/**
* @see \Symplify\SmartFileSystem\Tests\FileSystemFilter\FileSystemFilterTest

View File

@ -1,10 +1,10 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem;
namespace RectorPrefix20210519\Symplify\SmartFileSystem;
use Symplify\SmartFileSystem\Exception\DirectoryNotFoundException;
use Symplify\SmartFileSystem\Exception\FileNotFoundException;
use RectorPrefix20210519\Symplify\SmartFileSystem\Exception\DirectoryNotFoundException;
use RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException;
final class FileSystemGuard
{
public function ensureFileExists(string $file, string $location) : void
@ -12,7 +12,7 @@ final class FileSystemGuard
if (\file_exists($file)) {
return;
}
throw new \Symplify\SmartFileSystem\Exception\FileNotFoundException(\sprintf('File "%s" not found in "%s".', $file, $location));
throw new \RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException(\sprintf('File "%s" not found in "%s".', $file, $location));
}
public function ensureDirectoryExists(string $directory, string $extraMessage = '') : void
{
@ -23,6 +23,6 @@ final class FileSystemGuard
if ($extraMessage !== '') {
$message .= ' ' . $extraMessage;
}
throw new \Symplify\SmartFileSystem\Exception\DirectoryNotFoundException($message);
throw new \RectorPrefix20210519\Symplify\SmartFileSystem\Exception\DirectoryNotFoundException($message);
}
}

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem\Finder;
namespace RectorPrefix20210519\Symplify\SmartFileSystem\Finder;
use RectorPrefix20210519\Nette\Utils\Finder as NetteFinder;
use SplFileInfo;

View File

@ -1,10 +1,10 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem\Finder;
namespace RectorPrefix20210519\Symplify\SmartFileSystem\Finder;
use RectorPrefix20210519\Symfony\Component\Finder\Finder;
use Symplify\SmartFileSystem\FileSystemFilter;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter;
use Symplify\SmartFileSystem\SmartFileInfo;
/**
* @see \Symplify\SmartFileSystem\Tests\Finder\SmartFinder\SmartFinderTest
@ -19,7 +19,7 @@ final class SmartFinder
* @var FileSystemFilter
*/
private $fileSystemFilter;
public function __construct(\Symplify\SmartFileSystem\Finder\FinderSanitizer $finderSanitizer, \Symplify\SmartFileSystem\FileSystemFilter $fileSystemFilter)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer $finderSanitizer, \RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter $fileSystemFilter)
{
$this->finderSanitizer = $finderSanitizer;
$this->fileSystemFilter = $fileSystemFilter;

View File

@ -1,12 +1,12 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem\Json;
namespace RectorPrefix20210519\Symplify\SmartFileSystem\Json;
use RectorPrefix20210519\Nette\Utils\Arrays;
use RectorPrefix20210519\Nette\Utils\Json;
use Symplify\SmartFileSystem\FileSystemGuard;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
/**
* @see \Symplify\SmartFileSystem\Tests\Json\JsonFileSystem\JsonFileSystemTest
*/
@ -20,7 +20,7 @@ final class JsonFileSystem
* @var SmartFileSystem
*/
private $smartFileSystem;
public function __construct(\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard, \Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
public function __construct(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard $fileSystemGuard, \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
{
$this->fileSystemGuard = $fileSystemGuard;
$this->smartFileSystem = $smartFileSystem;

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem\Normalizer;
namespace RectorPrefix20210519\Symplify\SmartFileSystem\Normalizer;
use RectorPrefix20210519\Nette\Utils\Strings;
/**

View File

@ -1,14 +1,14 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem;
namespace RectorPrefix20210519\Symplify\SmartFileSystem;
use RectorPrefix20210519\Nette\Utils\Strings;
use RectorPrefix20210519\Symfony\Component\Finder\SplFileInfo;
use RectorPrefix20210519\Symplify\EasyTesting\PHPUnit\StaticPHPUnitEnvironment;
use RectorPrefix20210519\Symplify\EasyTesting\StaticFixtureSplitter;
use Symplify\SmartFileSystem\Exception\DirectoryNotFoundException;
use Symplify\SmartFileSystem\Exception\FileNotFoundException;
use RectorPrefix20210519\Symplify\SmartFileSystem\Exception\DirectoryNotFoundException;
use RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException;
/**
* @see \Symplify\SmartFileSystem\Tests\SmartFileInfo\SmartFileInfoTest
*/
@ -25,10 +25,10 @@ final class SmartFileInfo extends \RectorPrefix20210519\Symfony\Component\Finder
private $smartFileSystem;
public function __construct(string $filePath)
{
$this->smartFileSystem = new \Symplify\SmartFileSystem\SmartFileSystem();
$this->smartFileSystem = new \RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem();
// accepts also dirs
if (!\file_exists($filePath)) {
throw new \Symplify\SmartFileSystem\Exception\FileNotFoundException(\sprintf('File path "%s" was not found while creating "%s" object.', $filePath, self::class));
throw new \RectorPrefix20210519\Symplify\SmartFileSystem\Exception\FileNotFoundException(\sprintf('File path "%s" was not found while creating "%s" object.', $filePath, self::class));
}
// real path doesn't work in PHAR: https://www.php.net/manual/en/function.realpath.php
if (\RectorPrefix20210519\Nette\Utils\Strings::startsWith($filePath, 'phar://')) {
@ -71,7 +71,7 @@ final class SmartFileInfo extends \RectorPrefix20210519\Symfony\Component\Finder
public function getRelativeFilePathFromDirectory(string $directory) : string
{
if (!\file_exists($directory)) {
throw new \Symplify\SmartFileSystem\Exception\DirectoryNotFoundException(\sprintf('Directory "%s" was not found in %s.', $directory, self::class));
throw new \RectorPrefix20210519\Symplify\SmartFileSystem\Exception\DirectoryNotFoundException(\sprintf('Directory "%s" was not found in %s.', $directory, self::class));
}
$relativeFilePath = $this->smartFileSystem->makePathRelative($this->getNormalizedRealPath(), (string) \realpath($directory));
return \rtrim($relativeFilePath, '/');
@ -122,3 +122,7 @@ final class SmartFileInfo extends \RectorPrefix20210519\Symfony\Component\Finder
return \str_replace('\\', '/', $path);
}
}
/**
* @see \Symplify\SmartFileSystem\Tests\SmartFileInfo\SmartFileInfoTest
*/
\class_alias('RectorPrefix20210519\\Symplify\\SmartFileSystem\\SmartFileInfo', 'Symplify\\SmartFileSystem\\SmartFileInfo', \false);

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace Symplify\SmartFileSystem;
namespace RectorPrefix20210519\Symplify\SmartFileSystem;
use RectorPrefix20210519\Nette\Utils\Strings;
use RectorPrefix20210519\Symfony\Component\Filesystem\Exception\IOException;

View File

@ -9,11 +9,11 @@ use RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurat
use RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
use RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider;
use RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
use Symplify\SmartFileSystem\FileSystemFilter;
use Symplify\SmartFileSystem\FileSystemGuard;
use Symplify\SmartFileSystem\Finder\FinderSanitizer;
use Symplify\SmartFileSystem\Finder\SmartFinder;
use Symplify\SmartFileSystem\SmartFileSystem;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter;
use RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer;
use RectorPrefix20210519\Symplify\SmartFileSystem\Finder\SmartFinder;
use RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem;
use function RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service;
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$services = $containerConfigurator->services();
@ -22,11 +22,11 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class);
$services->set(\RectorPrefix20210519\Symfony\Component\Console\Style\SymfonyStyle::class)->factory([\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20210519\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class), 'create']);
// filesystem
$services->set(\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
$services->set(\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\Symplify\SmartFileSystem\Finder\SmartFinder::class);
$services->set(\Symplify\SmartFileSystem\FileSystemGuard::class);
$services->set(\Symplify\SmartFileSystem\FileSystemFilter::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\Finder\SmartFinder::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemGuard::class);
$services->set(\RectorPrefix20210519\Symplify\SmartFileSystem\FileSystemFilter::class);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->args([\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20210519\Symfony\Component\DependencyInjection\ContainerInterface::class)]);
$services->set(\RectorPrefix20210519\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
};