REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.50 KB
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/DependencyInjection/RectorContainerFactory.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\DependencyInjection; use RectorPrefix202411\Illuminate\Container\Container; use Rector\Autoloading\BootstrapFilesIncluder; use Rector\Caching\Detector\ChangedFilesDetector; use Rector\ValueObject\Bootstrap\BootstrapConfigs; final class RectorContainerFactory { public function createFromBootstrapConfigs(BootstrapConfigs $bootstrapConfigs) : Container { $container = $this->createFromConfigs($bootstrapConfigs->getConfigFiles()); $mainConfigFile = $bootstrapConfigs->getMainConfigFile(); if ($mainConfigFile !== null) { /** @var ChangedFilesDetector $changedFilesDetector */ $changedFilesDetector = $container->make(ChangedFilesDetector::class); $changedFilesDetector->setFirstResolvedConfigFileInfo($mainConfigFile); } /** @var BootstrapFilesIncluder $bootstrapFilesIncluder */ $bootstrapFilesIncluder = $container->get(BootstrapFilesIncluder::class); $bootstrapFilesIncluder->includeBootstrapFiles(); return $container; } /** * @param string[] $configFiles */ private function createFromConfigs(array $configFiles) : Container { $lazyContainerFactory = new \Rector\DependencyInjection\LazyContainerFactory(); $rectorConfig = $lazyContainerFactory->create(); foreach ($configFiles as $configFile) { $rectorConfig->import($configFile); } $rectorConfig->boot(); return $rectorConfig; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Laravel
DIR
-
drwxr-xr-x
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LazyContainerFactory.php
28.06 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RectorContainerFactory.php
1.50 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).