src/Rocketeer/Services/Environment/Environment.php
protected function computeServerVariable($variable, callable $callback)
    {
        $user = $this->config->getContextually('remote.variables.'.$variable);
        if ($user) {
            return $user;
        }

        return $this->localStorage->get($this->getVariablePath($variable), $callback);
    }
protected function computeServerVariable($variable, callable $callback)
    {
        $user = $this->config->getContextually('remote.variables.'.$variable);
        if ($user) {
            return $user;
        }

        return $this->localStorage->get($this->getVariablePath($variable), $callback);
    }
protected function computeServerVariable ( $ variable , callable $ callback ) { $ user = $ this -> config -> getContextually ( 'remote.variables.' . $ variable ) ; if ( $ user ) { return $ user ; } return $ this -> localStorage -> get ( $ this -> getVariablePath ( $ variable ) , $ callback ) ; }
Get a cached server variable or compute it.

@param string   $variable
@param callable $callback

@return string
Get a cached server variable or compute it .