REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.58 KB
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-symfony/src/DataProvider/ServiceMapProvider.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Symfony\DataProvider; use Rector\Configuration\Option; use Rector\Configuration\Parameter\SimpleParameterProvider; use Rector\Symfony\ValueObject\ServiceMap\ServiceMap; use Rector\Symfony\ValueObjectFactory\ServiceMapFactory; /** * Inspired by https://github.com/phpstan/phpstan-symfony/tree/master/src/Symfony */ final class ServiceMapProvider { /** * @readonly * @var \Rector\Symfony\ValueObjectFactory\ServiceMapFactory */ private $serviceMapFactory; /** * @var \Rector\Symfony\ValueObject\ServiceMap\ServiceMap|null */ private $serviceMap; public function __construct(ServiceMapFactory $serviceMapFactory, ?ServiceMap $serviceMap = null) { $this->serviceMapFactory = $serviceMapFactory; $this->serviceMap = $serviceMap; } public function provide() : ServiceMap { // avoid caching in tests if (\defined('PHPUNIT_COMPOSER_INSTALL')) { $this->serviceMap = null; } if ($this->serviceMap instanceof ServiceMap) { return $this->serviceMap; } if (SimpleParameterProvider::hasParameter(Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER)) { $symfonyContainerXmlPath = SimpleParameterProvider::provideStringParameter(Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER); $this->serviceMap = $this->serviceMapFactory->createFromFileContent($symfonyContainerXmlPath); } else { $this->serviceMap = $this->serviceMapFactory->createEmpty(); } return $this->serviceMap; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ServiceMapProvider.php
1.58 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
ServiceNameToTypeUniqueProvider.php
1.09 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).