function runserver_env

8.0.x d8-rs-router.php runserver_env($key)
8.0.x runserver-prepend.php runserver_env($key)
6.x runserver-prepend.php runserver_env($key)
7.x d8-rs-router.php runserver_env($key)
7.x runserver-prepend.php runserver_env($key)
5.x runserver-prepend.php runserver_env($key)
master runserver-prepend.php runserver_env($key)
master d8-rs-router.php runserver_env($key)

File

commands/runserver/runserver-prepend.php, line 61

Code

function runserver_env($key) {
  if (isset($_SERVER[$key])) {
    return $_SERVER[$key];
  }
  else {
    return getenv($key);
  }
}