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

Exemplo n.º 1
0
 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