You are here

private function EnvParametersResource::findVariables in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Config/EnvParametersResource.php \Symfony\Component\HttpKernel\Config\EnvParametersResource::findVariables()
2 calls to EnvParametersResource::findVariables()
EnvParametersResource::isFresh in vendor/symfony/http-kernel/Config/EnvParametersResource.php
EnvParametersResource::__construct in vendor/symfony/http-kernel/Config/EnvParametersResource.php
Constructor.

File

vendor/symfony/http-kernel/Config/EnvParametersResource.php, line 81

Class

EnvParametersResource
EnvParametersResource represents resources stored in prefixed environment variables.

Namespace

Symfony\Component\HttpKernel\Config

Code

private function findVariables() {
  $variables = array();
  foreach ($_SERVER as $key => $value) {
    if (0 === strpos($key, $this->prefix)) {
      $variables[$key] = $value;
    }
  }
  ksort($variables);
  return $variables;
}