mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit
This commit is contained in:
parent
e565023c9b
commit
51e510ed8f
@ -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']);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '"c86b4c75a704424582076eebc303bc664ef159e9"';
|
||||
public const PACKAGE_VERSION = '"a95c68a538a1e23def8734b31345646b28d9cf6e"';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-05-19 13:40:19';
|
||||
public const RELEASE_DATE = '2021-05-19 13:42:41';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210519\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2::getLoader();
|
||||
return ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad::getLoader();
|
||||
|
20
vendor/composer/autoload_classmap.php
vendored
20
vendor/composer/autoload_classmap.php
vendored
@ -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',
|
||||
|
2
vendor/composer/autoload_psr4.php
vendored
2
vendor/composer/autoload_psr4.php
vendored
@ -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'),
|
||||
|
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 ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2
|
||||
class ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad', '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\ComposerStaticIniteba706009810e54255e0ace73a9344d2::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb153fc45d6a49e60020babe114533cad::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticIniteba706009810e54255e0ace73a9344d2::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitb153fc45d6a49e60020babe114533cad::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireeba706009810e54255e0ace73a9344d2($fileIdentifier, $file);
|
||||
composerRequireb153fc45d6a49e60020babe114533cad($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequireeba706009810e54255e0ace73a9344d2($fileIdentifier, $file)
|
||||
function composerRequireb153fc45d6a49e60020babe114533cad($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
38
vendor/composer/autoload_static.php
vendored
38
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
class ComposerStaticInitb153fc45d6a49e60020babe114533cad
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -27,7 +27,6 @@ class ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
'S' =>
|
||||
array (
|
||||
'Symplify\\SymfonyPhpConfig\\' => 26,
|
||||
'Symplify\\SmartFileSystem\\' => 25,
|
||||
'Symplify\\RuleDocGenerator\\' => 26,
|
||||
'Ssch\\TYPO3Rector\\PHPStan\\' => 25,
|
||||
'Ssch\\TYPO3Rector\\' => 17,
|
||||
@ -47,6 +46,7 @@ class ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
'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 ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
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 ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
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 ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
'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 ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
'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 ComposerStaticIniteba706009810e54255e0ace73a9344d2
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticIniteba706009810e54255e0ace73a9344d2::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticIniteba706009810e54255e0ace73a9344d2::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticIniteba706009810e54255e0ace73a9344d2::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb153fc45d6a49e60020babe114533cad::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb153fc45d6a49e60020babe114533cad::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb153fc45d6a49e60020babe114533cad::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
2
vendor/composer/installed.json
vendored
2
vendor/composer/installed.json
vendored
@ -4417,7 +4417,7 @@
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symplify\\SmartFileSystem\\": "src"
|
||||
"RectorPrefix20210519\\Symplify\\SmartFileSystem\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https:\/\/packagist.org\/downloads\/",
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -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('ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2', false) && !interface_exists('ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2', false) && !trait_exists('ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2', false)) {
|
||||
spl_autoload_call('RectorPrefix20210519\ComposerAutoloaderIniteba706009810e54255e0ace73a9344d2');
|
||||
if (!class_exists('ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad', false) && !interface_exists('ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad', false) && !trait_exists('ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad', false)) {
|
||||
spl_autoload_call('RectorPrefix20210519\ComposerAutoloaderInitb153fc45d6a49e60020babe114533cad');
|
||||
}
|
||||
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('composerRequireeba706009810e54255e0ace73a9344d2')) {
|
||||
function composerRequireeba706009810e54255e0ace73a9344d2() {
|
||||
return \RectorPrefix20210519\composerRequireeba706009810e54255e0ace73a9344d2(...func_get_args());
|
||||
if (!function_exists('composerRequireb153fc45d6a49e60020babe114533cad')) {
|
||||
function composerRequireb153fc45d6a49e60020babe114533cad() {
|
||||
return \RectorPrefix20210519\composerRequireb153fc45d6a49e60020babe114533cad(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -14,4 +14,4 @@ namespace RectorPrefix20210519;
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Lowlevel\\Utility\\ArrayBrowser' => \RectorPrefix20210519\TYPO3\CMS\Backend\View\ArrayBrowser::class];
|
||||
return ['TYPO3\\CMS\\Lowlevel\\Utility\\ArrayBrowser' => \RectorPrefix20210519\TYPO3\CMS\Backend\View\ArrayBrowser::class];
|
||||
|
@ -14,4 +14,4 @@ namespace RectorPrefix20210519;
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Page\\PageRepository' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepository::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetPageHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageHookInterface::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetPageOverlayHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageOverlayHookInterface::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetRecordOverlayHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetRecordOverlayHookInterface::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Page\\PageRepositoryInitHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryInitHookInterface::class];
|
||||
return ['TYPO3\\CMS\\Frontend\\Page\\PageRepository' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepository::class, 'TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetPageHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageHookInterface::class, 'TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetPageOverlayHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageOverlayHookInterface::class, 'TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetRecordOverlayHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetRecordOverlayHookInterface::class, 'TYPO3\\CMS\\Frontend\\Page\\PageRepositoryInitHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Domain\Repository\PageRepositoryInitHookInterface::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => \RectorPrefix20210519\TYPO3\CMS\Core\TypoScript\TypoScriptService::class];
|
||||
return ['TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => \RectorPrefix20210519\TYPO3\CMS\Core\TypoScript\TypoScriptService::class];
|
||||
|
@ -3,27 +3,27 @@
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return [
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Compiler\\TemplateCompiler' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\InterceptorInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\NodeInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\ChildNodeAccessInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\CompilableInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\PostParseInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Compiler\\TemplateCompiler' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\InterceptorInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\NodeInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\ChildNodeAccessInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\CompilableInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\PostParseInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
// Fluid-specific errors
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception\\InvalidVariableException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\View\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidSectionException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidSectionException::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidTemplateResourceException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception\\InvalidVariableException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\View\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidSectionException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidSectionException::class,
|
||||
'TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidTemplateResourceException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class,
|
||||
// Fluid variable containers, ViewHelpers, interfaces
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TemplateVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TemplateVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer::class,
|
||||
// Semi API level classes; mainly used in unit tests
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TagBuilder' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TagBuilder' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::class,
|
||||
];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Version\\Hook\\PreviewHook' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Hook\PreviewHook::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Task\\AutoPublishTask' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Task\AutoPublishTask::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Utility\\WorkspacesUtility' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Service\WorkspaceService::class];
|
||||
return ['TYPO3\\CMS\\Version\\Hook\\PreviewHook' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Hook\PreviewHook::class, 'TYPO3\\CMS\\Version\\Task\\AutoPublishTask' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Task\AutoPublishTask::class, 'TYPO3\\CMS\\Version\\Utility\\WorkspacesUtility' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Service\WorkspaceService::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\View\\AdminPanelView' => \RectorPrefix20210519\TYPO3\CMS\Adminpanel\View\AdminPanelView::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\View\\AdminPanelViewHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Adminpanel\View\AdminPanelViewHookInterface::class];
|
||||
return ['TYPO3\\CMS\\Frontend\\View\\AdminPanelView' => \RectorPrefix20210519\TYPO3\CMS\Adminpanel\View\AdminPanelView::class, 'TYPO3\\CMS\\Frontend\\View\\AdminPanelViewHookInterface' => \RectorPrefix20210519\TYPO3\CMS\Adminpanel\View\AdminPanelViewHookInterface::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Backend\\AjaxLoginHandler' => \RectorPrefix20210519\TYPO3\CMS\Backend\Controller\AjaxLoginController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Form\\Wizard\\ImageManipulationWizard' => \RectorPrefix20210519\TYPO3\CMS\Backend\Controller\Wizard\ImageManipulationController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Cshmanual\\Domain\\Repository\\TableManualRepository' => \RectorPrefix20210519\TYPO3\CMS\Backend\Domain\Repository\TableManualRepository::class];
|
||||
return ['TYPO3\\CMS\\Backend\\AjaxLoginHandler' => \RectorPrefix20210519\TYPO3\CMS\Backend\Controller\AjaxLoginController::class, 'TYPO3\\CMS\\Backend\\Form\\Wizard\\ImageManipulationWizard' => \RectorPrefix20210519\TYPO3\CMS\Backend\Controller\Wizard\ImageManipulationController::class, 'TYPO3\\CMS\\Cshmanual\\Domain\\Repository\\TableManualRepository' => \RectorPrefix20210519\TYPO3\CMS\Backend\Domain\Repository\TableManualRepository::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Lang\\LanguageService' => \RectorPrefix20210519\TYPO3\CMS\Core\Localization\LanguageService::class, 'RectorPrefix20210519\\TYPO3\\CMS\\ContextHelp\\Controller\\ContextHelpAjaxController' => \RectorPrefix20210519\TYPO3\CMS\Backend\Controller\ContextHelpAjaxController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Sv\\AbstractAuthenticationService' => \RectorPrefix20210519\TYPO3\CMS\Core\Authentication\AbstractAuthenticationService::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Sv\\AuthenticationService' => \RectorPrefix20210519\TYPO3\CMS\Core\Authentication\AuthenticationService::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\IO\\PharStreamWrapper' => \RectorPrefix20210519\TYPO3\PharStreamWrapper\PharStreamWrapper::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\IO\\PharStreamWrapperException' => \RectorPrefix20210519\TYPO3\PharStreamWrapper\Exception::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Tree\\TableConfiguration\\ExtJsArrayTreeRenderer' => \RectorPrefix20210519\TYPO3\CMS\Core\Tree\TableConfiguration\ArrayTreeRenderer::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\History\\RecordHistory' => \RectorPrefix20210519\TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\AbstractSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\AbstractComposedSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\Argon2iSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\Argon2iPasswordHash::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\BcryptSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\BcryptPasswordHash::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\BlowfishSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\BlowfishPasswordHash::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\ComposedSaltInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\ComposedPasswordHashInterface::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Utility\\ExensionManagerConfigurationUtility' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\ExtensionManagerConfigurationUtility::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Exception\\InvalidSaltException' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\InvalidPasswordHashException::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\Md5PasswordHash::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltFactory' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashInterface::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\Pbkdf2Salt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\Pbkdf2PasswordHash::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\PhpassPasswordHash::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\SaltedPasswordService' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\SaltedPasswordService::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Utility\\SaltedPasswordsUtility' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\SaltedPasswordsUtility::class];
|
||||
return ['TYPO3\\CMS\\Lang\\LanguageService' => \RectorPrefix20210519\TYPO3\CMS\Core\Localization\LanguageService::class, 'TYPO3\\CMS\\ContextHelp\\Controller\\ContextHelpAjaxController' => \RectorPrefix20210519\TYPO3\CMS\Backend\Controller\ContextHelpAjaxController::class, 'TYPO3\\CMS\\Sv\\AbstractAuthenticationService' => \RectorPrefix20210519\TYPO3\CMS\Core\Authentication\AbstractAuthenticationService::class, 'TYPO3\\CMS\\Sv\\AuthenticationService' => \RectorPrefix20210519\TYPO3\CMS\Core\Authentication\AuthenticationService::class, 'TYPO3\\CMS\\Core\\IO\\PharStreamWrapper' => \RectorPrefix20210519\TYPO3\PharStreamWrapper\PharStreamWrapper::class, 'TYPO3\\CMS\\Core\\IO\\PharStreamWrapperException' => \RectorPrefix20210519\TYPO3\PharStreamWrapper\Exception::class, 'TYPO3\\CMS\\Core\\Tree\\TableConfiguration\\ExtJsArrayTreeRenderer' => \RectorPrefix20210519\TYPO3\CMS\Core\Tree\TableConfiguration\ArrayTreeRenderer::class, 'TYPO3\\CMS\\Core\\History\\RecordHistory' => \RectorPrefix20210519\TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\AbstractSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\AbstractComposedSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Argon2iSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\Argon2iPasswordHash::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\BcryptSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\BcryptPasswordHash::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\BlowfishSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\BlowfishPasswordHash::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\ComposedSaltInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\ComposedPasswordHashInterface::class, 'TYPO3\\CMS\\Saltedpasswords\\Utility\\ExensionManagerConfigurationUtility' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\ExtensionManagerConfigurationUtility::class, 'TYPO3\\CMS\\Saltedpasswords\\Exception\\InvalidSaltException' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\InvalidPasswordHashException::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\Md5PasswordHash::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltFactory' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltInterface' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashInterface::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Pbkdf2Salt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\Pbkdf2PasswordHash::class, 'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\PhpassPasswordHash::class, 'TYPO3\\CMS\\Saltedpasswords\\SaltedPasswordService' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\SaltedPasswordService::class, 'TYPO3\\CMS\\Saltedpasswords\\Utility\\SaltedPasswordsUtility' => \RectorPrefix20210519\TYPO3\CMS\Core\Crypto\PasswordHashing\SaltedPasswordsUtility::class];
|
||||
|
@ -4,50 +4,50 @@ namespace RectorPrefix20210519;
|
||||
|
||||
return [
|
||||
// TYPO3 v8 replacements
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => \RectorPrefix20210519\TYPO3\CMS\Core\TypoScript\TypoScriptService::class,
|
||||
'TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => \RectorPrefix20210519\TYPO3\CMS\Core\TypoScript\TypoScriptService::class,
|
||||
// TYPO3 v9 replacements
|
||||
// Configuration
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Configuration\\Exception\\ContainerIsLockedException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Configuration\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Configuration\\Exception\\NoSuchFileException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Configuration\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Configuration\\Exception\\NoSuchOptionException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Configuration\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Configuration\\Exception\\ContainerIsLockedException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Configuration\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Configuration\\Exception\\NoSuchFileException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Configuration\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Configuration\\Exception\\NoSuchOptionException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Configuration\Exception::class,
|
||||
// no proper fallback
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidMarkerException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidRequestTypeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Mvc\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\RequiredArgumentMissingException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Mvc\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidCommandIdentifierException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Mvc\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidOrNoRequestHashException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception\InvalidHashException::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidUriPatternException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidMarkerException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidRequestTypeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Mvc\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\RequiredArgumentMissingException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Mvc\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidCommandIdentifierException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Mvc\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidOrNoRequestHashException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception\InvalidHashException::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidUriPatternException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception::class,
|
||||
// Object Container
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\Container\\Exception\\CannotInitializeCacheException' => \RectorPrefix20210519\TYPO3\CMS\Core\Cache\Exception\InvalidCacheException::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\Container\\Exception\\TooManyRecursionLevelsException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\Container\\Exception\\CannotInitializeCacheException' => \RectorPrefix20210519\TYPO3\CMS\Core\Cache\Exception\InvalidCacheException::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\Container\\Exception\\TooManyRecursionLevelsException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
// ObjectManager
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\Exception\\WrongScopeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\InvalidClassException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\InvalidObjectConfigurationException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\InvalidObjectException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\ObjectAlreadyRegisteredException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\UnknownClassException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\UnknownInterfaceException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\UnresolvedDependenciesException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\Exception\\WrongScopeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\InvalidClassException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\InvalidObjectConfigurationException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\InvalidObjectException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\ObjectAlreadyRegisteredException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\UnknownClassException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\UnknownInterfaceException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Object\\UnresolvedDependenciesException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Object\Exception::class,
|
||||
// Persistence
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\CleanStateNotMemorizedException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Persistence\Generic\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\InvalidPropertyTypeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Persistence\Generic\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\MissingBackendException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Persistence\Generic\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\CleanStateNotMemorizedException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Persistence\Generic\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\InvalidPropertyTypeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Persistence\Generic\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\MissingBackendException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Persistence\Generic\Exception::class,
|
||||
// Property
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Property\\Exception\\FormatNotSupportedException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Property\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Property\\Exception\\InvalidFormatException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Property\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Property\\Exception\\InvalidPropertyException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Property\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Property\\Exception\\FormatNotSupportedException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Property\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Property\\Exception\\InvalidFormatException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Property\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Property\\Exception\\InvalidPropertyException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Property\Exception::class,
|
||||
// Reflection
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Reflection\\Exception\\InvalidPropertyTypeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Reflection\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Reflection\\Exception\\InvalidPropertyTypeException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Reflection\Exception::class,
|
||||
// Security
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Security\\Exception\\InvalidArgumentForRequestHashGenerationException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Security\\Exception\\SyntacticallyWrongRequestHashException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Security\\Exception\\InvalidArgumentForRequestHashGenerationException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Security\\Exception\\SyntacticallyWrongRequestHashException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Security\Exception::class,
|
||||
// Validation
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Validation\\Exception\\InvalidSubjectException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Validation\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Validation\\Exception\\NoValidatorFoundException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Validation\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Validation\\Exception\\InvalidSubjectException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Validation\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Validation\\Exception\\NoValidatorFoundException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Validation\Exception::class,
|
||||
// Fluid
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidViewHelperException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidTemplateResourceException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidViewHelperException' => \RectorPrefix20210519\TYPO3\CMS\Extbase\Exception::class,
|
||||
'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidTemplateResourceException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class,
|
||||
// Service
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Service\\FlexFormService' => \RectorPrefix20210519\TYPO3\CMS\Core\Service\FlexFormService::class,
|
||||
'TYPO3\\CMS\\Extbase\\Service\\FlexFormService' => \RectorPrefix20210519\TYPO3\CMS\Core\Service\FlexFormService::class,
|
||||
];
|
||||
|
@ -4,33 +4,33 @@ namespace RectorPrefix20210519;
|
||||
|
||||
return [
|
||||
// Base classes removed in TYPO3 v9
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractViewHelper' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractConditionViewHelper' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractTagBasedViewHelper' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractViewHelper' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractConditionViewHelper' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractTagBasedViewHelper' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper::class,
|
||||
// Compiler/parser related aliases
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Compiler\\TemplateCompiler' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\InterceptorInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\NodeInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\ChildNodeAccessInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\CompilableInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\PostParseInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Compiler\\TemplateCompiler' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\InterceptorInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\NodeInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\ChildNodeAccessInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\CompilableInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Facets\\PostParseInterface' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface::class,
|
||||
// Fluid-specific errors
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception\\InvalidVariableException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\View\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidSectionException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidSectionException::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidTemplateResourceException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\Exception\\InvalidVariableException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\View\\Exception' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception::class,
|
||||
'TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidSectionException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidSectionException::class,
|
||||
'TYPO3\\CMS\\Fluid\\View\\Exception\\InvalidTemplateResourceException' => \RectorPrefix20210519\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class,
|
||||
// Fluid variable containers, ViewHelpers, interfaces
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ArgumentDefinition' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ArgumentDefinition::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TemplateVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer::class,
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Variables\\CmsVariableProvider' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ArgumentDefinition' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ArgumentDefinition::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TemplateVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperVariableContainer' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\Variables\\CmsVariableProvider' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::class,
|
||||
// Semi API level classes; mainly used in unit tests
|
||||
'RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TagBuilder' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::class,
|
||||
'TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TagBuilder' => \RectorPrefix20210519\TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::class,
|
||||
];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Controller\\PageInformationController' => \RectorPrefix20210519\TYPO3\CMS\Info\Controller\PageInformationController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Controller\\TranslationStatusController' => \RectorPrefix20210519\TYPO3\CMS\Info\Controller\TranslationStatusController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\InfoPagetsconfig\\Controller\\InfoPageTyposcriptConfigController' => \RectorPrefix20210519\TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::class];
|
||||
return ['TYPO3\\CMS\\Frontend\\Controller\\PageInformationController' => \RectorPrefix20210519\TYPO3\CMS\Info\Controller\PageInformationController::class, 'TYPO3\\CMS\\Frontend\\Controller\\TranslationStatusController' => \RectorPrefix20210519\TYPO3\CMS\Info\Controller\TranslationStatusController::class, 'TYPO3\\CMS\\InfoPagetsconfig\\Controller\\InfoPageTyposcriptConfigController' => \RectorPrefix20210519\TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Lowlevel\\View\\ConfigurationView' => \RectorPrefix20210519\TYPO3\CMS\Lowlevel\Controller\ConfigurationController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Lowlevel\\View\\DatabaseIntegrityView' => \RectorPrefix20210519\TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController::class];
|
||||
return ['TYPO3\\CMS\\Lowlevel\\View\\ConfigurationView' => \RectorPrefix20210519\TYPO3\CMS\Lowlevel\Controller\ConfigurationController::class, 'TYPO3\\CMS\\Lowlevel\\View\\DatabaseIntegrityView' => \RectorPrefix20210519\TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Recordlist\\RecordList' => \RectorPrefix20210519\TYPO3\CMS\Recordlist\Controller\RecordListController::class];
|
||||
return ['TYPO3\\CMS\\Recordlist\\RecordList' => \RectorPrefix20210519\TYPO3\CMS\Recordlist\Controller\RecordListController::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Sv\\Report\\ServicesListReport' => \RectorPrefix20210519\TYPO3\CMS\Reports\Report\ServicesListReport::class];
|
||||
return ['TYPO3\\CMS\\Sv\\Report\\ServicesListReport' => \RectorPrefix20210519\TYPO3\CMS\Reports\Report\ServicesListReport::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\T3editor\\CodeCompletion' => \RectorPrefix20210519\TYPO3\CMS\T3editor\Controller\CodeCompletionController::class, 'RectorPrefix20210519\\TYPO3\\CMS\\T3editor\\TypoScriptReferenceLoader' => \RectorPrefix20210519\TYPO3\CMS\T3editor\Controller\TypoScriptReferenceController::class];
|
||||
return ['TYPO3\\CMS\\T3editor\\CodeCompletion' => \RectorPrefix20210519\TYPO3\CMS\T3editor\Controller\CodeCompletionController::class, 'TYPO3\\CMS\\T3editor\\TypoScriptReferenceLoader' => \RectorPrefix20210519\TYPO3\CMS\T3editor\Controller\TypoScriptReferenceController::class];
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
namespace RectorPrefix20210519;
|
||||
|
||||
return ['RectorPrefix20210519\\TYPO3\\CMS\\Lowlevel\\Command\\WorkspaceVersionRecordsCommand' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Command\WorkspaceVersionRecordsCommand::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\DataHandler\\CommandMap' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\DataHandler\CommandMap::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Dependency\\DependencyEntityFactory' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Dependency\\DependencyResolver' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\DependencyResolver::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Dependency\\ElementEntity' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\ElementEntity::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Dependency\\ElementEntityProcessor' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Dependency\\EventCallback' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\EventCallback::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Dependency\\ReferenceEntity' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\ReferenceEntity::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Hook\\DataHandlerHook' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Hook\DataHandlerHook::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Hook\\PreviewHook' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Preview\PreviewUriBuilder::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Task\\AutoPublishTask' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Task\AutoPublishTask::class, 'RectorPrefix20210519\\TYPO3\\CMS\\Version\\Utility\\WorkspacesUtility' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Service\WorkspaceService::class];
|
||||
return ['TYPO3\\CMS\\Lowlevel\\Command\\WorkspaceVersionRecordsCommand' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Command\WorkspaceVersionRecordsCommand::class, 'TYPO3\\CMS\\Version\\DataHandler\\CommandMap' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\DataHandler\CommandMap::class, 'TYPO3\\CMS\\Version\\Dependency\\DependencyEntityFactory' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::class, 'TYPO3\\CMS\\Version\\Dependency\\DependencyResolver' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\DependencyResolver::class, 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\ElementEntity::class, 'TYPO3\\CMS\\Version\\Dependency\\ElementEntityProcessor' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::class, 'TYPO3\\CMS\\Version\\Dependency\\EventCallback' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\EventCallback::class, 'TYPO3\\CMS\\Version\\Dependency\\ReferenceEntity' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Dependency\ReferenceEntity::class, 'TYPO3\\CMS\\Version\\Hook\\DataHandlerHook' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Hook\DataHandlerHook::class, 'TYPO3\\CMS\\Version\\Hook\\PreviewHook' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Preview\PreviewUriBuilder::class, 'TYPO3\\CMS\\Version\\Task\\AutoPublishTask' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Task\AutoPublishTask::class, 'TYPO3\\CMS\\Version\\Utility\\WorkspacesUtility' => \RectorPrefix20210519\TYPO3\CMS\Workspaces\Service\WorkspaceService::class];
|
||||
|
@ -10,6 +10,6 @@ use RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurat
|
||||
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
||||
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set('typo3_objectmanager_get_to_generalutility_makeinstance')->class(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class)->call('configure', [[\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::METHOD_CALLS_TO_STATIC_CALLS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Transform\ValueObject\MethodCallToStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface', 'get', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance')])]]);
|
||||
$services->set('typo3_objectmanager_get_to_generalutility_makeinstance')->class(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class)->call('configure', [[\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::METHOD_CALLS_TO_STATIC_CALLS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Transform\ValueObject\MethodCallToStaticCall('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface', 'get', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Experimental\OptionalConstructorToHardRequirementRector::class);
|
||||
};
|
||||
|
@ -8,5 +8,5 @@ use RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurat
|
||||
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set('nimut_testing_framework_to_typo3_testing_framework')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['RectorPrefix20210519\\Nimut\\TestingFramework\\TestCase\\UnitTestCase' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'RectorPrefix20210519\\Nimut\\TestingFramework\\TestCase\\FunctionalTestCase' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase', 'RectorPrefix20210519\\Nimut\\TestingFramework\\TestCase\\ViewHelperBaseTestcase' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Fluid\\Unit\\ViewHelpers\\ViewHelperBaseTestcase', 'RectorPrefix20210519\\Nimut\\TestingFramework\\MockObject\\AccessibleMockObjectInterface' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Core\\AccessibleObjectInterface', 'RectorPrefix20210519\\Nimut\\TestingFramework\\Exception\\Exception' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Core\\Exception']]]);
|
||||
$services->set('nimut_testing_framework_to_typo3_testing_framework')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['Nimut\\TestingFramework\\TestCase\\UnitTestCase' => 'TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'Nimut\\TestingFramework\\TestCase\\FunctionalTestCase' => 'TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase', 'Nimut\\TestingFramework\\TestCase\\ViewHelperBaseTestcase' => 'TYPO3\\TestingFramework\\Fluid\\Unit\\ViewHelpers\\ViewHelperBaseTestcase', 'Nimut\\TestingFramework\\MockObject\\AccessibleMockObjectInterface' => 'TYPO3\\TestingFramework\\Core\\AccessibleObjectInterface', 'Nimut\\TestingFramework\\Exception\\Exception' => 'TYPO3\\TestingFramework\\Core\\Exception']]]);
|
||||
};
|
||||
|
@ -10,5 +10,5 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$containerConfigurator->import(__DIR__ . '/../../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Extensions\solr\v9\ApacheSolrDocumentToSolariumDocumentRector::class);
|
||||
$services->set('apache_solr_to_solarium_classes')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['Apache_Solr_Document' => 'RectorPrefix20210519\\ApacheSolrForTypo3\\Solr\\System\\Solr\\Document\\Document', 'Apache_Solr_Response' => 'RectorPrefix20210519\\ApacheSolrForTypo3\\Solr\\System\\Solr\\ResponseAdapter']]]);
|
||||
$services->set('apache_solr_to_solarium_classes')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['Apache_Solr_Document' => 'ApacheSolrForTypo3\\Solr\\System\\Solr\\Document\\Document', 'Apache_Solr_Response' => 'ApacheSolrForTypo3\\Solr\\System\\Solr\\ResponseAdapter']]]);
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
@ -18,8 +18,8 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\RegisterPluginWithVendorNameRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\BackendUtilityEditOnClickRector::class);
|
||||
$services->set('record_history_property_fetch_changelog_to_method_call_get_changelog')->class(\Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector::class)->call('configure', [[\Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector::PROPERTIES_TO_METHOD_CALLS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\History\\RecordHistory', 'changeLog', 'getChangeLog', 'setChangelog', ['bla']), new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\History\\RecordHistory', 'lastHistoryEntry', 'getLastHistoryEntryNumber', null, [])])]]);
|
||||
$services->set('record_history_rename_methods')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createChangeLog', 'getChangeLog'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\History\\RecordHistory', 'getElementData', 'getElementInformation'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createMultipleDiff', 'getDiff'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\History\\RecordHistory', 'setLastHistoryEntry', 'setLastHistoryEntryNumber')])]]);
|
||||
$services->set('record_history_property_fetch_changelog_to_method_call_get_changelog')->class(\Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector::class)->call('configure', [[\Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector::PROPERTIES_TO_METHOD_CALLS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'changeLog', 'getChangeLog', 'setChangelog', ['bla']), new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'lastHistoryEntry', 'getLastHistoryEntryNumber', null, [])])]]);
|
||||
$services->set('record_history_rename_methods')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createChangeLog', 'getChangeLog'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'getElementData', 'getElementInformation'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createMultipleDiff', 'getDiff'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'setLastHistoryEntry', 'setLastHistoryEntryNumber')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\SendNotifyEmailToMailApiRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\RefactorInternalPropertiesOfTSFERector::class);
|
||||
};
|
||||
|
@ -14,7 +14,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v3\UseClassTypo3VersionRector::class);
|
||||
$services->set('rename_broken_link_repository_number_of_broken_links_to_is_link_target_broken_link')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Linkvalidator\\Repository\\BrokenLinkRepository', 'getNumberOfBrokenLinks', 'isLinkTargetBrokenLink')])]]);
|
||||
$services->set('rename_broken_link_repository_number_of_broken_links_to_is_link_target_broken_link')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Linkvalidator\\Repository\\BrokenLinkRepository', 'getNumberOfBrokenLinks', 'isLinkTargetBrokenLink')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v3\SubstituteResourceFactoryRector::class);
|
||||
$services->set('web_request_to_request_web_response_to_response')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request' => 'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Request', 'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response' => 'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Response']]]);
|
||||
$services->set('web_request_to_request_web_response_to_response')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request' => 'TYPO3\\CMS\\Extbase\\Mvc\\Request', 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response' => 'TYPO3\\CMS\\Extbase\\Mvc\\Response']]]);
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\UnifiedFileNameValidatorRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\SubstituteGeneralUtilityMethodsWithNativePhpFunctionsRector::class);
|
||||
$services->set('rename_static_method_is_running_on_cgi_server_api_to_is_running_on_cgi_server')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isRunningOnCgiServerApi', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Core\\Environment', 'isRunningOnCgiServer')])]]);
|
||||
$services->set('rename_static_method_is_running_on_cgi_server_api_to_is_running_on_cgi_server')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isRunningOnCgiServerApi', 'TYPO3\\CMS\\Core\\Core\\Environment', 'isRunningOnCgiServer')])]]);
|
||||
$services->set('rename_class_alias_maps_version_104')->class(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->call('configure', [[\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::CLASS_ALIAS_MAPS => [__DIR__ . '/../../Migrations/TYPO3/10.4/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/10.4/typo3/sysext/core/Migrations/Code/ClassAliasMap.php']]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\UseFileGetContentsForGetUrlRector::class);
|
||||
};
|
||||
|
@ -18,8 +18,8 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallConnectDbRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallLoadTcaRector::class);
|
||||
$services->set('rename_class_templates_to_document_template')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate' => 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\SmallDocumentTemplate' => 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\StandardDocumentTemplate' => 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\BigDocumentTemplate' => 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\DocumentTemplate']]]);
|
||||
$services->set('rename_static_method_generalUtility_int_from_ver_to_convert_version_number_to_integer')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'int_from_ver', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\VersionNumberUtility', 'convertVersionNumberToInteger')])]]);
|
||||
$services->set('rename_class_templates_to_document_template')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\SmallDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\StandardDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\BigDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate']]]);
|
||||
$services->set('rename_static_method_generalUtility_int_from_ver_to_convert_version_number_to_integer')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'int_from_ver', 'TYPO3\\CMS\\Core\\Utility\\VersionNumberUtility', 'convertVersionNumberToInteger')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\TypeHandlingServiceToTypeHandlingUtilityRector::class);
|
||||
$services->set('rename_method_typo3_query_settings')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings', 'setSysLanguageUid', 'setLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings', 'getSysLanguageUid', 'getLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Object\\ObjectManager', 'create', 'get')])]]);
|
||||
$services->set('rename_method_typo3_query_settings')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings', 'setSysLanguageUid', 'setLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings', 'getSysLanguageUid', 'getLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Object\\ObjectManager', 'create', 'get')])]]);
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\RenamePiListBrowserResultsRector::class);
|
||||
$services->set('document_template_issue_command_to_backend_utility_get_link_to_data_handler_action')->class(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class)->call('configure', [[\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::METHOD_CALLS_TO_STATIC_CALLS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Transform\ValueObject\MethodCallToStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'issueCommand', 'RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Utility\\BackendUtility', 'getLinkToDataHandlerAction')])]]);
|
||||
$services->set('search_form_controller_constants_to_like_wildcard_constants')->class(\Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector::class)->call('configure', [[\Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector::CLASS_CONSTANT_RENAME => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_LEFT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_RIGHT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_LEFT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_RIGHT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT')])]]);
|
||||
$services->set('document_template_issue_command_to_backend_utility_get_link_to_data_handler_action')->class(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class)->call('configure', [[\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::METHOD_CALLS_TO_STATIC_CALLS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Transform\ValueObject\MethodCallToStaticCall('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'issueCommand', 'TYPO3\\CMS\\Backend\\Utility\\BackendUtility', 'getLinkToDataHandlerAction')])]]);
|
||||
$services->set('search_form_controller_constants_to_like_wildcard_constants')->class(\Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector::class)->call('configure', [[\Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector::CLASS_CONSTANT_RENAME => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_LEFT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_RIGHT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_LEFT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_RIGHT', \RectorPrefix20210519\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\WrapClickMenuOnIconRector::class);
|
||||
};
|
||||
|
@ -37,15 +37,15 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerGlobalsToSingletonRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveWakeupCallFromEntityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RteHtmlParserRector::class);
|
||||
$services->set('rename_method_print_action_to_main_action')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Recordlist\\RecordList', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'main', 'main_user'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'main', 'main_parse_html'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'printContent', 'mainAction')])]]);
|
||||
$services->set('rename_static_methods_version_80')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility', 'configureModule', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility', 'configureModule'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Core\\TypoScript\\TemplateService', 'sortedKeyList', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'filterAndSortByNumericKeys'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'imageMagickCommand', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\CommandUtility', 'imageMagickCommand')])]]);
|
||||
$services->set('rename_method_print_action_to_main_action')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Recordlist\\RecordList', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'main', 'main_user'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'main', 'main_parse_html'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'printContent', 'mainAction')])]]);
|
||||
$services->set('rename_static_methods_version_80')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility', 'configureModule', 'TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility', 'configureModule'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\TypoScript\\TemplateService', 'sortedKeyList', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'filterAndSortByNumericKeys'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'imageMagickCommand', 'TYPO3\\CMS\\Core\\Utility\\CommandUtility', 'imageMagickCommand')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\PrependAbsolutePathToGetFileAbsFileNameRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMarkerMethodsFromHtmlParserRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveRteHtmlParserEvalWriteFileRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RandomMethodsToRandomClassRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RequireMethodsToNativeFunctionsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\GetPreferredClientLanguageRector::class);
|
||||
$services->set('rename_method_get_template_variable_container_to_get_variable_provider')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContext', 'getTemplateVariableContainer', 'getVariableProvider')])]]);
|
||||
$services->set('rename_method_get_template_variable_container_to_get_variable_provider')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContext', 'getTemplateVariableContainer', 'getVariableProvider')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerInsteadOfNullTimeTrackerRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveCharsetConverterParametersRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\GetFileAbsFileNameRemoveDeprecatedArgumentsRector::class);
|
||||
|
@ -12,8 +12,8 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
// @see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.4/Deprecation-75363-DeprecateFormResultCompilerJStop.html
|
||||
$services->set('form_result_compiler_jstop_to_add_css_files')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Routing\\FormResultCompiler', 'JStop', 'addCssFiles')])]]);
|
||||
$services->set('form_result_compiler_jstop_to_add_css_files')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Routing\\FormResultCompiler', 'JStop', 'addCssFiles')])]]);
|
||||
// @see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.4/Deprecation-77826-RTEHtmlAreaSpellcheckerEntrypoint.html
|
||||
$services->set('spell_checking_controller_main_to_process_request')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Saltedpasswords\\Salt\\SpellCheckingController', 'main', 'processRequest')])]]);
|
||||
$services->set('spell_checking_controller_main_to_process_request')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Saltedpasswords\\Salt\\SpellCheckingController', 'main', 'processRequest')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v4\ExtensionManagementUtilityExtRelPathRector::class);
|
||||
};
|
||||
|
@ -13,7 +13,7 @@ use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
||||
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set('clip_board_print_content_from_tab_to_get_content_from_tab')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Clipboard\\ClipBoard', 'printContentFromTab', 'getContentFromTab')])]]);
|
||||
$services->set('clip_board_print_content_from_tab_to_get_content_from_tab')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Clipboard\\ClipBoard', 'printContentFromTab', 'getContentFromTab')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v5\CharsetConverterToMultiByteFunctionsRector::class);
|
||||
$services->set('extbase_array_utility_methods_to_core_array_utility_methods')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'integerExplode', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'intExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'trimExplode', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'trimExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'getValueByPath', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'getValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'setValueByPath', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'setValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'unsetValueByPath', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'removeByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys')])]]);
|
||||
$services->set('extbase_array_utility_methods_to_core_array_utility_methods')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'integerExplode', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'intExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'trimExplode', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'trimExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'getValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'getValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'setValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'setValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'unsetValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'removeByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys')])]]);
|
||||
};
|
||||
|
@ -8,5 +8,5 @@ use RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurat
|
||||
return static function (\RectorPrefix20210519\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set('namespace_typo3_cms_core_tests_to__typo3_testing_framework_core')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['RectorPrefix20210519\\TYPO3\\CMS\\Core\\Tests\\UnitTestCase' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Tests\\FunctionalTestCase' => 'RectorPrefix20210519\\TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase']]]);
|
||||
$services->set('namespace_typo3_cms_core_tests_to__typo3_testing_framework_core')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['TYPO3\\CMS\\Core\\Tests\\UnitTestCase' => 'TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'TYPO3\\CMS\\Core\\Tests\\FunctionalTestCase' => 'TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase']]]);
|
||||
};
|
||||
|
@ -28,9 +28,9 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\TemplateServiceSplitConfArrayRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorRemovedMarkerMethodsFromContentObjectRendererRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\ChangeAttemptsParameterConsoleOutputRector::class);
|
||||
$services->set('extbase_typoscriptservice_to_core_typoscriptservice')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\TypoScript\\TypoScriptService']]]);
|
||||
$services->set('extbase_typoscriptservice_to_core_typoscriptservice')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => 'TYPO3\\CMS\\Core\\TypoScript\\TypoScriptService']]]);
|
||||
$services->set('rename_class_alias_maps_version_87')->class(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->call('configure', [[\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::CLASS_ALIAS_MAPS => [__DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/version/Migrations/Code/ClassAliasMap.php']]]);
|
||||
$services->set('general_utility_csv_values_to_csv_utility')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'csvValues', 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\CsvUtility', 'csvValues')])]]);
|
||||
$services->set('general_utility_csv_values_to_csv_utility')->class(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::OLD_TO_NEW_METHODS_BY_CLASSES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'csvValues', 'TYPO3\\CMS\\Core\\Utility\\CsvUtility', 'csvValues')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\BackendUtilityGetRecordsByFieldToQueryBuilderRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorPrintContentMethodsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorArrayBrowserWrapValueRector::class);
|
||||
|
@ -39,7 +39,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\MoveRenderArgumentsToInitializeArgumentsMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\InjectAnnotationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\IgnoreValidationAnnotationRector::class);
|
||||
$services->set('replace_extbase_annotations_to_doctrine_annotations')->class(\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector::class)->call('configure', [[\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector::OLD_TO_NEW_ANNOTATIONS => ['lazy' => 'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Lazy', 'cascade' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Cascade("remove")', 'transient' => 'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Transient']]]);
|
||||
$services->set('replace_extbase_annotations_to_doctrine_annotations')->class(\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector::class)->call('configure', [[\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector::OLD_TO_NEW_ANNOTATIONS => ['lazy' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Lazy', 'cascade' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Cascade("remove")', 'transient' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Transient']]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\CheckForExtensionInfoRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorMethodsFromExtensionManagementUtilityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\MetaTagManagementRector::class);
|
||||
@ -54,7 +54,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveSecondArgumentGeneralUtilityMkdirDeepRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\CheckForExtensionVersionRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorDeprecationLogRector::class);
|
||||
$services->set('general_utility_get_user_obj_to_make_instance')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'getUserObj', 'makeInstance')])]]);
|
||||
$services->set('general_utility_get_user_obj_to_make_instance')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'getUserObj', 'makeInstance')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\UseNewComponentIdForPageTreeRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorBackendUtilityGetPagesTSconfigRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\UseExtensionConfigurationApiRector::class);
|
||||
|
@ -12,7 +12,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v2\RenameMethodCallToEnvironmentMethodCallRector::class);
|
||||
$services->set('string_frontend_to_variable_frontend')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['RectorPrefix20210519\\TYPO3\\CMS\\Core\\Cache\\Frontend\\StringFrontend' => 'RectorPrefix20210519\\TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend']]]);
|
||||
$services->set('string_frontend_to_variable_frontend')->class(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['TYPO3\\CMS\\Core\\Cache\\Frontend\\StringFrontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend']]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v2\GeneralUtilityGetUrlRequestHeadersRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v2\PageNotFoundAndErrorHandlingRector::class);
|
||||
};
|
||||
|
@ -21,13 +21,13 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\RemoveColPosParameterRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\ValidateAnnotationRector::class);
|
||||
$services->set('localization_controller_get_used_languages_in_page_and_column_to_get_used_languages_in_page')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Controller\\Page\\LocalizationController', 'getUsedLanguagesInPageAndColumn', 'getUsedLanguagesInPage')])]]);
|
||||
$services->set('localization_controller_get_used_languages_in_page_and_column_to_get_used_languages_in_page')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Controller\\Page\\LocalizationController', 'getUsedLanguagesInPageAndColumn', 'getUsedLanguagesInPage')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\BackendUtilityGetModuleUrlRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\PropertyUserTsToMethodGetTsConfigOfBackendUserAuthenticationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\UseMethodGetPageShortcutDirectlyFromSysPageRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\CopyMethodGetPidForModTSconfigRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\BackendUserAuthenticationSimplelogRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\MoveLanguageFilesFromExtensionLangRector::class);
|
||||
$services->set('get_validation_results_to_validate')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Argument', 'getValidationResults', 'validate'), new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Arguments', 'getValidationResults', 'validate')])]]);
|
||||
$services->set('get_validation_results_to_validate')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Argument', 'getValidationResults', 'validate'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Arguments', 'getValidationResults', 'validate')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\RefactorTsConfigRelatedMethodsRector::class);
|
||||
};
|
||||
|
@ -18,7 +18,7 @@ return static function (\RectorPrefix20210519\Symfony\Component\DependencyInject
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\UsePackageManagerActivePackagesRector::class);
|
||||
$services->set('resource_storage_dump_file_contents_to_stream_file')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Resource\\ResourceStorage', 'dumpFileContents', 'streamFile')])]]);
|
||||
$services->set('resource_storage_dump_file_contents_to_stream_file')->class(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', 'dumpFileContents', 'streamFile')])]]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveFlushCachesRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveInternalAnnotationRector::class);
|
||||
$services->set('rename_class_alias_maps_version_95')->class(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->call('configure', [[\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::CLASS_ALIAS_MAPS => [__DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/adminpanel/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/core/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/info/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/lowlevel/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/recordlist/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/reports/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/workspaces/Migrations/Code/ClassAliasMap.php']]]);
|
||||
|
@ -19,7 +19,7 @@ final class ConnectionCallFactory
|
||||
}
|
||||
public function createConnectionCall(\PhpParser\Node\Arg $firstArgument) : \PhpParser\Node\Expr\Assign
|
||||
{
|
||||
$connection = $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Database\\ConnectionPool')]), 'getConnectionForTable', [$this->nodeFactory->createArg($firstArgument->value)]);
|
||||
$connection = $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Database\\ConnectionPool')]), 'getConnectionForTable', [$this->nodeFactory->createArg($firstArgument->value)]);
|
||||
return new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable('connection'), $connection);
|
||||
}
|
||||
}
|
||||
|
@ -18,20 +18,20 @@ final class OldSeverityToLogLevelMapper
|
||||
public function mapSeverityToLogLevel(int $severityValue) : \PhpParser\Node\Expr\ClassConstFetch
|
||||
{
|
||||
if (0 === $severityValue) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Log\\LogLevel', 'INFO');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Log\\LogLevel', 'INFO');
|
||||
}
|
||||
if (1 === $severityValue) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Log\\LogLevel', 'NOTICE');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Log\\LogLevel', 'NOTICE');
|
||||
}
|
||||
if (2 === $severityValue) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Log\\LogLevel', 'WARNING');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Log\\LogLevel', 'WARNING');
|
||||
}
|
||||
if (3 === $severityValue) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Log\\LogLevel', 'ERROR');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Log\\LogLevel', 'ERROR');
|
||||
}
|
||||
if (4 === $severityValue) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Log\\LogLevel', 'CRITICAL');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Log\\LogLevel', 'CRITICAL');
|
||||
}
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Log\\LogLevel', 'INFO');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Log\\LogLevel', 'INFO');
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ CODE_SAMPLE
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\ApacheSolrForTypo3\\Solr\\System\\Solr\\SolrConnection'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('ApacheSolrForTypo3\\Solr\\System\\Solr\\SolrConnection'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'addDocuments')) {
|
||||
|
@ -40,7 +40,7 @@ CODE_SAMPLE
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'makeInstance')) {
|
||||
@ -56,14 +56,14 @@ CODE_SAMPLE
|
||||
return null;
|
||||
}
|
||||
$firstArgumentObjectType = new \PHPStan\Type\ObjectType($firstArgumentValue);
|
||||
if ($firstArgumentObjectType->isInstanceOf('RectorPrefix20210519\\ApacheSolrForTypo3\\Solr\\Site')->no()) {
|
||||
if ($firstArgumentObjectType->isInstanceOf('ApacheSolrForTypo3\\Solr\\Site')->no()) {
|
||||
return null;
|
||||
}
|
||||
$secondArgumentValue = $this->valueResolver->getValue($secondArgument->value);
|
||||
if (!\is_numeric($secondArgumentValue)) {
|
||||
return null;
|
||||
}
|
||||
$node->args[0]->value = $this->nodeFactory->createClassConstReference('RectorPrefix20210519\\ApacheSolrForTypo3\\Solr\\Domain\\Site\\SiteRepository');
|
||||
$node->args[0]->value = $this->nodeFactory->createClassConstReference('ApacheSolrForTypo3\\Solr\\Domain\\Site\\SiteRepository');
|
||||
unset($node->args[1]);
|
||||
return $this->nodeFactory->createMethodCall($node, 'getSiteByPageId', [$secondArgument]);
|
||||
}
|
||||
|
@ -29,13 +29,13 @@ final class BackendUtilityGetViewDomainToPageRouterRector extends \Rector\Core\R
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Utility\\BackendUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Backend\\Utility\\BackendUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'getViewDomain')) {
|
||||
return null;
|
||||
}
|
||||
$siteNode = new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable('site'), $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Site\\SiteFinder')]), 'getSiteByPageId', $node->args));
|
||||
$siteNode = new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable('site'), $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Site\\SiteFinder')]), 'getSiteByPageId', $node->args));
|
||||
$this->addNodeBeforeNode($siteNode, $node);
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createMethodCall(new \PhpParser\Node\Expr\Variable('site'), 'getRouter'), 'generateUri', [$node->args[0]]);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ final class ChangeDefaultCachingFrameworkNamesRector extends \Rector\Core\Rector
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isObjectType($node->var, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Cache\\CacheManager'))) {
|
||||
if (!$this->nodeTypeResolver->isObjectType($node->var, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Cache\\CacheManager'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'getCache')) {
|
||||
|
@ -33,7 +33,7 @@ final class ConfigurationManagerAddControllerConfigurationMethodRector extends \
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->isObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Configuration\\AbstractConfigurationManager'))) {
|
||||
if (!$this->isObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Configuration\\AbstractConfigurationManager'))) {
|
||||
return null;
|
||||
}
|
||||
$this->addMethodGetControllerConfiguration($node);
|
||||
|
@ -100,14 +100,14 @@ CODE_SAMPLE
|
||||
public function createCallForSettingProperty() : \PhpParser\Node\Expr\MethodCall
|
||||
{
|
||||
$staticCallContext = $this->createContext();
|
||||
$staticCallAspect = $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', self::MAKE_INSTANCE, [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Context\\TypoScriptAspect'), new \PhpParser\Node\Expr\ConstFetch(new \PhpParser\Node\Name('true'))]);
|
||||
$staticCallAspect = $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', self::MAKE_INSTANCE, [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Context\\TypoScriptAspect'), new \PhpParser\Node\Expr\ConstFetch(new \PhpParser\Node\Name('true'))]);
|
||||
$contextCall = $this->nodeFactory->createMethodCall($staticCallContext, 'setAspect');
|
||||
$contextCall->args = $this->nodeFactory->createArgs([self::TYPOSCRIPT, $staticCallAspect]);
|
||||
return $contextCall;
|
||||
}
|
||||
private function createContext() : \PhpParser\Node\Expr\StaticCall
|
||||
{
|
||||
return $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', self::MAKE_INSTANCE, [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Context\\Context')]);
|
||||
return $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', self::MAKE_INSTANCE, [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Context\\Context')]);
|
||||
}
|
||||
private function isPropertyForceTemplateParsing(\PhpParser\Node $node) : bool
|
||||
{
|
||||
@ -118,10 +118,10 @@ CODE_SAMPLE
|
||||
if (!$this->isName($nodeName, 'forceTemplateParsing')) {
|
||||
return \false;
|
||||
}
|
||||
if ($this->isObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController'))) {
|
||||
if ($this->isObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController'))) {
|
||||
return \true;
|
||||
}
|
||||
if ($this->isObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\TypoScript\\TemplateService'))) {
|
||||
if ($this->isObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\TypoScript\\TemplateService'))) {
|
||||
return \true;
|
||||
}
|
||||
if ($this->typo3NodeResolver->isPropertyFetchOnAnyPropertyOfGlobals($node, \Ssch\TYPO3Rector\Helper\Typo3NodeResolver::TYPO_SCRIPT_FRONTEND_CONTROLLER)) {
|
||||
|
@ -32,7 +32,7 @@ final class RefactorIdnaEncodeMethodToNativeFunctionRector extends \Rector\Core\
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'idnaEncode')) {
|
||||
|
@ -27,7 +27,7 @@ final class RemovePropertyExtensionNameRector extends \Rector\Core\Rector\Abstra
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->isObjectType($node->var, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Controller\\AbstractController')) || !$this->isObjectType($node->var, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ActionController'))) {
|
||||
if (!$this->isObjectType($node->var, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\AbstractController')) || !$this->isObjectType($node->var, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ActionController'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node, 'extensionName')) {
|
||||
|
@ -37,13 +37,13 @@ final class SetSystemLocaleFromSiteLanguageRector extends \Rector\Core\Rector\Ab
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController')) && !$this->typo3NodeResolver->isAnyMethodCallOnGlobals($node, \Ssch\TYPO3Rector\Helper\Typo3NodeResolver::TYPO_SCRIPT_FRONTEND_CONTROLLER)) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController')) && !$this->typo3NodeResolver->isAnyMethodCallOnGlobals($node, \Ssch\TYPO3Rector\Helper\Typo3NodeResolver::TYPO_SCRIPT_FRONTEND_CONTROLLER)) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'settingLocale')) {
|
||||
return null;
|
||||
}
|
||||
return $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Localization\\Locales', 'setSystemLocaleFromSiteLanguage', [$this->nodeFactory->createMethodCall($node->var, 'getLanguage')]);
|
||||
return $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Localization\\Locales', 'setSystemLocaleFromSiteLanguage', [$this->nodeFactory->createMethodCall($node->var, 'getLanguage')]);
|
||||
}
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
|
@ -30,7 +30,7 @@ final class SwiftMailerBasedMailMessageToMailerBasedMessageRector extends \Recto
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Mail\\MailMessage'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Mail\\MailMessage'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isNames($node->name, ['setBody', 'addPart', 'attach', 'embed'])) {
|
||||
|
@ -33,7 +33,7 @@ final class UseControllerClassesInExtbasePluginsAndModulesRector extends \Rector
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isNames($node->name, ['configurePlugin', 'registerModule'])) {
|
||||
|
@ -27,7 +27,7 @@ final class UseMetaDataAspectRector extends \Rector\Core\Rector\AbstractRector
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Resource\\File'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Resource\\File'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, '_getMetaData')) {
|
||||
|
@ -28,7 +28,7 @@ final class UseNativePhpHex2binMethodRector extends \Rector\Core\Rector\Abstract
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\TypeHandlingUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Utility\\TypeHandlingUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'hex2bin')) {
|
||||
|
@ -38,7 +38,7 @@ final class UseTwoLetterIsoCodeFromSiteLanguageRector extends \Rector\Core\Recto
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->isObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController')) && !$this->typo3NodeResolver->isPropertyFetchOnAnyPropertyOfGlobals($node, \Ssch\TYPO3Rector\Helper\Typo3NodeResolver::TYPO_SCRIPT_FRONTEND_CONTROLLER)) {
|
||||
if (!$this->isObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController')) && !$this->typo3NodeResolver->isPropertyFetchOnAnyPropertyOfGlobals($node, \Ssch\TYPO3Rector\Helper\Typo3NodeResolver::TYPO_SCRIPT_FRONTEND_CONTROLLER)) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'sys_language_isocode')) {
|
||||
|
@ -32,7 +32,7 @@ final class BackendUtilityEditOnClickRector extends \Rector\Core\Rector\Abstract
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Utility\\BackendUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Backend\\Utility\\BackendUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'editOnClick')) {
|
||||
@ -60,10 +60,10 @@ CODE_SAMPLE
|
||||
}
|
||||
private function createUriBuilderCall(\PhpParser\Node\Arg $firstArgument) : \PhpParser\Node\Expr\BinaryOp\Concat
|
||||
{
|
||||
return new \PhpParser\Node\Expr\BinaryOp\Concat(new \PhpParser\Node\Expr\BinaryOp\Concat($this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Routing\\UriBuilder')]), 'buildUriFromRoute', [$this->nodeFactory->createArg('record_edit')]), $firstArgument->value), new \PhpParser\Node\Scalar\String_('&returnUrl='));
|
||||
return new \PhpParser\Node\Expr\BinaryOp\Concat(new \PhpParser\Node\Expr\BinaryOp\Concat($this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Backend\\Routing\\UriBuilder')]), 'buildUriFromRoute', [$this->nodeFactory->createArg('record_edit')]), $firstArgument->value), new \PhpParser\Node\Scalar\String_('&returnUrl='));
|
||||
}
|
||||
private function createRequestUriCall() : \PhpParser\Node\Expr\FuncCall
|
||||
{
|
||||
return new \PhpParser\Node\Expr\FuncCall(new \PhpParser\Node\Name('rawurlencode'), [$this->nodeFactory->createArg($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'getIndpEnv', [$this->nodeFactory->createArg('REQUEST_URI')]))]);
|
||||
return new \PhpParser\Node\Expr\FuncCall(new \PhpParser\Node\Name('rawurlencode'), [$this->nodeFactory->createArg($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'getIndpEnv', [$this->nodeFactory->createArg('REQUEST_URI')]))]);
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ CODE_SAMPLE
|
||||
$ifNode = new \PhpParser\Node\Stmt\If_(new \PhpParser\Node\Expr\BinaryOp\BooleanAnd(new \PhpParser\Node\Expr\BooleanNot(new \PhpParser\Node\Expr\Empty_(new \PhpParser\Node\Expr\Variable(self::QUERY_PARAMS))), new \PhpParser\Node\Expr\BinaryOp\Coalesce(new \PhpParser\Node\Expr\ArrayDimFetch($this->nodeFactory->createMethodCall(new \PhpParser\Node\Expr\Variable(self::PAGE_ARGUMENTS), 'getArguments'), new \PhpParser\Node\Scalar\String_(self::HASH)), $this->nodeFactory->createFalse())));
|
||||
// $relevantParametersForCachingFromPageArguments = GeneralUtility::makeInstance(CacheHashCalculator::class)->getRelevantParameters(HttpUtility::buildQueryString($queryParams));
|
||||
$ifNode->stmts[] = new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\ArrayDimFetch(new \PhpParser\Node\Expr\Variable(self::QUERY_PARAMS), new \PhpParser\Node\Scalar\String_('id')), $this->nodeFactory->createMethodCall(new \PhpParser\Node\Expr\Variable(self::PAGE_ARGUMENTS), 'getPageId')));
|
||||
$ifNode->stmts[] = new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::RELEVANT_PARAMETERS_FOR_CACHING_FROM_PAGE_ARGUMENTS), $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\Page\\CacheHashCalculator')]), 'getRelevantParameters', [$this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\HttpUtility', 'buildQueryString', [new \PhpParser\Node\Expr\Variable(self::QUERY_PARAMS)])])));
|
||||
$ifNode->stmts[] = new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::RELEVANT_PARAMETERS_FOR_CACHING_FROM_PAGE_ARGUMENTS), $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Frontend\\Page\\CacheHashCalculator')]), 'getRelevantParameters', [$this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\HttpUtility', 'buildQueryString', [new \PhpParser\Node\Expr\Variable(self::QUERY_PARAMS)])])));
|
||||
return $ifNode;
|
||||
}
|
||||
private function refactorCacheHashArray(\PhpParser\Node\Expr\PropertyFetch $node) : \PhpParser\Node
|
||||
|
@ -30,7 +30,7 @@ final class RegisterPluginWithVendorNameRector extends \Rector\Core\Rector\Abstr
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'registerPlugin')) {
|
||||
|
@ -80,7 +80,7 @@ final class SendNotifyEmailToMailApiRector extends \Rector\Core\Rector\AbstractR
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if ($this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'))) {
|
||||
if ($this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'sendNotifyEmail')) {
|
||||
@ -152,7 +152,7 @@ CODE_SAMPLE
|
||||
}
|
||||
private function initializeMailClass() : \PhpParser\Node
|
||||
{
|
||||
return new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::MAIL), $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Mail\\MailMessage')])));
|
||||
return new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::MAIL), $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Mail\\MailMessage')])));
|
||||
}
|
||||
private function trimMessage(\PhpParser\Node\Expr\MethodCall $node) : \PhpParser\Node
|
||||
{
|
||||
@ -168,7 +168,7 @@ CODE_SAMPLE
|
||||
}
|
||||
private function mailFromMethodCall() : \PhpParser\Node\Expr\MethodCall
|
||||
{
|
||||
return $this->nodeFactory->createMethodCall(self::MAIL, 'from', [new \PhpParser\Node\Expr\New_(new \PhpParser\Node\Name\FullyQualified('RectorPrefix20210519\\Symfony\\Component\\Mime\\Address'), [$this->nodeFactory->createArg(new \PhpParser\Node\Expr\Variable(self::SENDER_ADDRESS)), $this->nodeFactory->createArg(new \PhpParser\Node\Expr\Variable('senderName'))])]);
|
||||
return $this->nodeFactory->createMethodCall(self::MAIL, 'from', [new \PhpParser\Node\Expr\New_(new \PhpParser\Node\Name\FullyQualified('Symfony\\Component\\Mime\\Address'), [$this->nodeFactory->createArg(new \PhpParser\Node\Expr\Variable(self::SENDER_ADDRESS)), $this->nodeFactory->createArg(new \PhpParser\Node\Expr\Variable('senderName'))])]);
|
||||
}
|
||||
private function ifSenderAddress() : \PhpParser\Node
|
||||
{
|
||||
@ -195,7 +195,7 @@ CODE_SAMPLE
|
||||
}
|
||||
private function parsedRecipients(\PhpParser\Node\Expr\MethodCall $node) : \PhpParser\Node\Stmt\Expression
|
||||
{
|
||||
return new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::PARSED_RECIPIENTS), $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\MailUtility', 'parseAddresses', [$node->args[1]])));
|
||||
return new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::PARSED_RECIPIENTS), $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\MailUtility', 'parseAddresses', [$node->args[1]])));
|
||||
}
|
||||
private function ifParsedRecipients() : \PhpParser\Node\Stmt\If_
|
||||
{
|
||||
@ -210,7 +210,7 @@ CODE_SAMPLE
|
||||
}
|
||||
private function parsedReplyTo(\PhpParser\Node\Expr $replyTo) : \PhpParser\Node
|
||||
{
|
||||
return new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::PARSED_REPLY_TO), $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\MailUtility', 'parseAddresses', [$replyTo])));
|
||||
return new \PhpParser\Node\Stmt\Expression(new \PhpParser\Node\Expr\Assign(new \PhpParser\Node\Expr\Variable(self::PARSED_REPLY_TO), $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\MailUtility', 'parseAddresses', [$replyTo])));
|
||||
}
|
||||
private function methodReplyTo() : \PhpParser\Node
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ final class ExcludeServiceKeysToArrayRector extends \Rector\Core\Rector\Abstract
|
||||
return null;
|
||||
}
|
||||
$args = [new \PhpParser\Node\Scalar\String_(','), $excludeServiceKeys, $this->nodeFactory->createTrue()];
|
||||
$staticCall = $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'trimExplode', $args);
|
||||
$staticCall = $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'trimExplode', $args);
|
||||
$node->args[2] = new \PhpParser\Node\Arg($staticCall);
|
||||
return $node;
|
||||
}
|
||||
@ -74,9 +74,9 @@ CODE_SAMPLE
|
||||
}
|
||||
private function isExpectedObjectType(\PhpParser\Node\Expr\StaticCall $node) : bool
|
||||
{
|
||||
if ($this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility'))) {
|
||||
if ($this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility'))) {
|
||||
return \true;
|
||||
}
|
||||
return $this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility'));
|
||||
return $this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility'));
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ final class InjectEnvironmentServiceIfNeededInResponseRector extends \Rector\Cor
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->isObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response'))) {
|
||||
if (!$this->isObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isPropertyEnvironmentServiceInUse($node)) {
|
||||
@ -122,7 +122,7 @@ CODE_SAMPLE
|
||||
{
|
||||
$propertyBuilder = new \RectorPrefix20210519\Symplify\Astral\ValueObject\NodeBuilder\PropertyBuilder(self::ENVIRONMENT_SERVICE);
|
||||
$propertyBuilder->makeProtected();
|
||||
$type = new \Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Service\\EnvironmentService');
|
||||
$type = new \Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType('TYPO3\\CMS\\Extbase\\Service\\EnvironmentService');
|
||||
$propertyBuilder->setDocComment(new \PhpParser\Comment\Doc(\sprintf('/**%s * @var \\%s%s */', \PHP_EOL, $type->describe(\PHPStan\Type\VerbosityLevel::typeOnly()), \PHP_EOL)));
|
||||
return $propertyBuilder->getNode();
|
||||
}
|
||||
@ -143,7 +143,7 @@ CODE_SAMPLE
|
||||
private function addInjectEnvironmentServiceMethod(\PhpParser\Node\Stmt\Class_ $node) : void
|
||||
{
|
||||
$paramBuilder = new \RectorPrefix20210519\Symplify\Astral\ValueObject\NodeBuilder\ParamBuilder(self::ENVIRONMENT_SERVICE);
|
||||
$paramBuilder->setType(new \PhpParser\Node\Name\FullyQualified('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Service\\EnvironmentService'));
|
||||
$paramBuilder->setType(new \PhpParser\Node\Name\FullyQualified('TYPO3\\CMS\\Extbase\\Service\\EnvironmentService'));
|
||||
$param = $paramBuilder->getNode();
|
||||
$propertyAssignNode = $this->nodeFactory->createPropertyAssignmentWithExpr(self::ENVIRONMENT_SERVICE, new \PhpParser\Node\Expr\Variable(self::ENVIRONMENT_SERVICE));
|
||||
$classMethodBuilder = new \RectorPrefix20210519\Symplify\Astral\ValueObject\NodeBuilder\MethodBuilder('injectEnvironmentService');
|
||||
|
@ -27,13 +27,13 @@ final class MoveApplicationContextToEnvironmentApiRector extends \Rector\Core\Re
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'getApplicationContext')) {
|
||||
return null;
|
||||
}
|
||||
return $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Core\\Environment', 'getContext', []);
|
||||
return $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Core\\Environment', 'getContext', []);
|
||||
}
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
|
@ -30,10 +30,10 @@ final class UseActionControllerRector extends \Rector\Core\Rector\AbstractRector
|
||||
if (null === $node->extends) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->extends, 'RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Controller\\AbstractController')) {
|
||||
if (!$this->isName($node->extends, 'TYPO3\\CMS\\Extbase\\Mvc\\Controller\\AbstractController')) {
|
||||
return null;
|
||||
}
|
||||
$node->extends = new \PhpParser\Node\Name\FullyQualified('RectorPrefix20210519\\TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ActionController');
|
||||
$node->extends = new \PhpParser\Node\Name\FullyQualified('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ActionController');
|
||||
return $node;
|
||||
}
|
||||
/**
|
||||
|
@ -27,13 +27,13 @@ final class UseTypo3InformationForCopyRightNoticeRector extends \Rector\Core\Rec
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Backend\\Utility\\BackendUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Backend\\Utility\\BackendUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'TYPO3_copyRightNotice')) {
|
||||
return null;
|
||||
}
|
||||
$staticCall = $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Information')]);
|
||||
$staticCall = $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Information\\Typo3Information')]);
|
||||
return $this->nodeFactory->createMethodCall($staticCall, 'getCopyrightNotice');
|
||||
}
|
||||
/**
|
||||
|
@ -27,13 +27,13 @@ final class SubstituteResourceFactoryRector extends \Rector\Core\Rector\Abstract
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Resource\\ResourceFactory'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Resource\\ResourceFactory'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'getInstance')) {
|
||||
return null;
|
||||
}
|
||||
return $this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Resource\\ResourceFactory')]);
|
||||
return $this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Resource\\ResourceFactory')]);
|
||||
}
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
|
@ -35,19 +35,19 @@ final class UseClassTypo3InformationRector extends \Rector\Core\Rector\AbstractR
|
||||
}
|
||||
$nodeName = $this->getName($node->name);
|
||||
if ('TYPO3_URL_GENERAL' === $nodeName) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_COMMUNITY');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_COMMUNITY');
|
||||
}
|
||||
if ('TYPO3_URL_LICENSE' === $nodeName) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_LICENSE');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_LICENSE');
|
||||
}
|
||||
if ('TYPO3_URL_EXCEPTION' === $nodeName) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_EXCEPTION');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_EXCEPTION');
|
||||
}
|
||||
if ('TYPO3_URL_DONATE' === $nodeName) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_DONATE');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_DONATE');
|
||||
}
|
||||
if ('TYPO3_URL_WIKI_OPCODECACHE' === $nodeName) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_OPCACHE');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Information\\Typo3Information', 'URL_OPCACHE');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ final class UseClassTypo3VersionRector extends \Rector\Core\Rector\AbstractRecto
|
||||
return null;
|
||||
}
|
||||
$methodCall = $this->isName($node->name, 'TYPO3_version') ? 'getVersion' : 'getBranch';
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Information\\Typo3Version')]), $methodCall);
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Information\\Typo3Version')]), $methodCall);
|
||||
}
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
|
@ -47,7 +47,7 @@ final class RemoveFormatConstantsEmailFinisherRector extends \Rector\Core\Rector
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->isObjectType($node->class, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Form\\Domain\\Finishers\\EmailFinisher'))) {
|
||||
if (!$this->isObjectType($node->class, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Form\\Domain\\Finishers\\EmailFinisher'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isNames($node->name, [self::FORMAT_HTML, 'FORMAT_PLAINTEXT'])) {
|
||||
@ -73,7 +73,7 @@ final class RemoveFormatConstantsEmailFinisherRector extends \Rector\Core\Rector
|
||||
*/
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('RectorPrefix20210519\\Remove constants FORMAT_PLAINTEXT and FORMAT_HTML of class TYPO3\\CMS\\Form\\Domain\\Finishers\\EmailFinisher', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Remove constants FORMAT_PLAINTEXT and FORMAT_HTML of class TYPO3\\CMS\\Form\\Domain\\Finishers\\EmailFinisher', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
$this->setOption(self::FORMAT, EmailFinisher::FORMAT_HTML);
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
|
@ -33,7 +33,7 @@ final class SubstituteGeneralUtilityMethodsWithNativePhpFunctionsRector extends
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isNames($node->name, self::METHOD_CALL_TO_REFACTOR)) {
|
||||
|
@ -32,10 +32,10 @@ final class UnifiedFileNameValidatorRector extends \Rector\Core\Rector\AbstractR
|
||||
return null;
|
||||
}
|
||||
if ($node instanceof \PhpParser\Node\Expr\StaticCall && $this->isMethodVerifyFilenameAgainstDenyPattern($node)) {
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Resource\\Security\\FileNameValidator')]), 'isValid', $node->args);
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Resource\\Security\\FileNameValidator')]), 'isValid', $node->args);
|
||||
}
|
||||
if ($this->isConstFileDenyPatternDefault($node)) {
|
||||
return $this->nodeFactory->createClassConstFetch('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Resource\\Security\\FileNameValidator', 'DEFAULT_FILE_DENY_PATTERN');
|
||||
return $this->nodeFactory->createClassConstFetch('TYPO3\\CMS\\Core\\Resource\\Security\\FileNameValidator', 'DEFAULT_FILE_DENY_PATTERN');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -74,7 +74,7 @@ CODE_SAMPLE
|
||||
*/
|
||||
public function isMethodVerifyFilenameAgainstDenyPattern(\PhpParser\Node $node) : bool
|
||||
{
|
||||
return $node instanceof \PhpParser\Node\Expr\StaticCall && $this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility')) && $this->isName($node->name, 'verifyFilenameAgainstDenyPattern');
|
||||
return $node instanceof \PhpParser\Node\Expr\StaticCall && $this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility')) && $this->isName($node->name, 'verifyFilenameAgainstDenyPattern');
|
||||
}
|
||||
/**
|
||||
* @param ConstFetch|StaticCall $node
|
||||
|
@ -28,7 +28,7 @@ final class UseFileGetContentsForGetUrlRector extends \Rector\Core\Rector\Abstra
|
||||
*/
|
||||
public function refactor($node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
if (!$this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType($node, new \PHPStan\Type\ObjectType('TYPO3\\CMS\\Core\\Utility\\GeneralUtility'))) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isName($node->name, 'getUrl')) {
|
||||
@ -44,7 +44,7 @@ final class UseFileGetContentsForGetUrlRector extends \Rector\Core\Rector\Abstra
|
||||
}
|
||||
// Cannot rewrite for external urls
|
||||
if (\preg_match('#^(?:http|ftp)s?|s(?:ftp|cp):#', $urlValue)) {
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createMethodCall($this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('RectorPrefix20210519\\TYPO3\\CMS\\Core\\Http\\RequestFactory')]), 'request', $node->args), 'getBody'), 'getContents');
|
||||
return $this->nodeFactory->createMethodCall($this->nodeFactory->createMethodCall($this->nodeFactory->createMethodCall($this->nodeFactory->createStaticCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance', [$this->nodeFactory->createClassConstReference('TYPO3\\CMS\\Core\\Http\\RequestFactory')]), 'request', $node->args), 'getBody'), 'getContents');
|
||||
}
|
||||
return new \PhpParser\Node\Expr\ErrorSuppress($this->nodeFactory->createFuncCall('file_get_contents', $node->args));
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user