public function execute($name) { switch ($name) { case 'home': echo Config::getPhpbrewRoot(); break; case 'build': echo Config::getBuildDir(); break; case 'bin': echo Config::getCurrentPhpBin(); break; case 'include': echo Config::getVersionBuildPrefix(Config::getCurrentPhpName()) . DIRECTORY_SEPARATOR . 'include'; break; case 'etc': echo Config::getVersionBuildPrefix(Config::getCurrentPhpName()) . DIRECTORY_SEPARATOR . 'etc'; break; } }
public function execute($name) { switch ($name) { case 'root': echo Config::getRoot(); break; case 'home': echo Config::getHome(); break; case 'config-scan': echo Config::getCurrentPhpConfigScanPath(); break; case 'dist': echo Config::getDistFileDir(); break; case 'build': echo Config::getCurrentBuildDir(); break; case 'bin': echo Config::getCurrentPhpBin(); break; case 'include': echo Config::getVersionInstallPrefix(Config::getCurrentPhpName()) . DIRECTORY_SEPARATOR . 'include'; break; case 'extension-src': case 'ext-src': echo Config::getCurrentBuildDir() . DIRECTORY_SEPARATOR . 'ext'; break; case 'extension-dir': case 'ext-dir': case 'ext': echo ini_get('extension_dir'); break; case 'etc': echo Config::getVersionInstallPrefix(Config::getCurrentPhpName()) . DIRECTORY_SEPARATOR . 'etc'; break; } }