protected function Kernel::getEnvParameters in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::getEnvParameters()
Gets the environment parameters.
Only the parameters starting with "SYMFONY__" are considered.
Return value
array An array of parameters
1 call to Kernel::getEnvParameters()
- Kernel::getKernelParameters in vendor/
symfony/ http-kernel/ Kernel.php - Returns the kernel parameters.
File
- vendor/
symfony/ http-kernel/ Kernel.php, line 561
Class
- Kernel
- The Kernel is the heart of the Symfony system.
Namespace
Symfony\Component\HttpKernelCode
protected function getEnvParameters() {
$parameters = array();
foreach ($_SERVER as $key => $value) {
if (0 === strpos($key, 'SYMFONY__')) {
$parameters[strtolower(str_replace('__', '.', substr($key, 9)))] = $value;
}
}
return $parameters;
}