Webiny\Component\Http\Request\Env::getAll PHP Method

getAll() public method

Returns a list of all environment variables.
public getAll ( ) : array
return array
    public function getAll()
    {
        return $this->envBag->val();
    }

Usage Example

コード例 #1
0
ファイル: EnvTest.php プロジェクト: Webiny/Framework
 public function testGetAll()
 {
     $_ENV = ["APP_ENV" => "development", "DEBUG_IP" => "127.0.0.1"];
     $env = new Env();
     $this->assertSame($_ENV, $env->getAll());
 }
All Usage Examples Of Webiny\Component\Http\Request\Env::getAll