src/Rocketeer/Services/Environment/Environment.php
protected function getPhpConstant($variable, $constant)
    {
        return $this->computeServerVariable($variable, function () use ($variable, $constant) {
            $value = $this->bash->runRaw('php -r "echo '.$constant.';"');
            $this->localStorage->set($this->getVariablePath($variable), $value);

            return $value ?: constant($constant);
        });
    }
protected function getPhpConstant($variable, $constant)
    {
        return $this->computeServerVariable($variable, function () use ($variable, $constant) {
            $value = $this->bash->runRaw('php -r "echo '.$constant.';"');
            $this->localStorage->set($this->getVariablePath($variable), $value);

            return $value ?: constant($constant);
        });
    }
protected function getPhpConstant ( $ variable , $ constant ) { return $ this -> computeServerVariable ( $ variable , function ( ) use ( $ variable , $ constant ) { $ value = $ this -> bash -> runRaw ( 'php -r "echo ' . $ constant . ';"' ) ; $ this -> localStorage -> set ( $ this -> getVariablePath ( $ variable ) , $ value ) ; return $ value ? : constant ( $ constant ) ; } ) ; }
Get a PHP constant from the server.

@param string $variable
@param string $constant

@return string
Get a PHP constant from the server .