public function makeFromEnvironment()
    {
        $env = new EnvUtils();

        // Check that we have all variables we need
        if (!$env->hasBearerKey()) {
            throw new Exception(
                'TUTUM_AUTH is not set. Unable to create from environment'
            );
        }

        $client = new Client('', '');
        $client->setBearerKey($env->getBearerKey());

        return $client;
    }
public function makeFromEnvironment()
    {
        $env = new EnvUtils();

        // Check that we have all variables we need
        if (!$env->hasBearerKey()) {
            throw new Exception(
                'TUTUM_AUTH is not set. Unable to create from environment'
            );
        }

        $client = new Client('', '');
        $client->setBearerKey($env->getBearerKey());

        return $client;
    }
public function makeFromEnvironment ( ) { $ env = new EnvUtils ( ) ; // Check that we have all variables we need if ( ! $ env -> hasBearerKey ( ) ) { throw new Exception ( 'TUTUM_AUTH is not set. Unable to create from environment' ) ; } $ client = new Client ( '' , '' ) ; $ client -> setBearerKey ( $ env -> getBearerKey ( ) ) ; return $ client ; }
Build a client using configuration from the environment

@return Client
@throws Exception
Build a client using configuration from the environment