Page MenuHomeWickedGov Phorge

SuperglobalsEnv.php
No OneTemporary

Size
620 B
Referenced Files
None
Subscribers
None

SuperglobalsEnv.php

<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2023 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Psy;
/**
* Environment variables implementation via $_SERVER superglobal.
*/
class SuperglobalsEnv implements EnvInterface
{
/**
* Get an environment variable by name.
*
* @return string|null
*/
public function get(string $key)
{
if (isset($_SERVER[$key]) && $_SERVER[$key]) {
return $_SERVER[$key];
}
return null;
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 03:50 (4 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/35/dc14c0cc17a3e11ba2ff00615946
Default Alt Text
SuperglobalsEnv.php (620 B)

Event Timeline