protected function 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 drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php
Returns the kernel parameters.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php, line 634

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

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;
}