PhpBrew\Config::getCurrentBuildDir PHP Метод

getCurrentBuildDir() публичный статический Метод

public static getCurrentBuildDir ( )
    public static function getCurrentBuildDir()
    {
        return self::getRoot() . DIRECTORY_SEPARATOR . 'build' . DIRECTORY_SEPARATOR . self::getCurrentPhpName();
    }

Usage Example

Пример #1
0
 public function prepare()
 {
     parent::prepare();
     $buildDir = Config::getCurrentBuildDir();
     $extDir = $buildDir . DIRECTORY_SEPARATOR . 'ext';
     if (!is_dir($extDir)) {
         $this->logger->error("Error: The ext directory '{$extDir}' does not exist.");
         $this->logger->error("It looks like you don't have the PHP source in {$buildDir} or you didn't extract the tarball.");
         $this->logger->error("Suggestion: Please install at least one PHP with your prefered version and switch to it.");
         return false;
     }
     return true;
 }
All Usage Examples Of PhpBrew\Config::getCurrentBuildDir