PHP Class PhpBrew\Config

ファイルを表示 Open project: phpbrew/phpbrew Class Usage Examples

Protected Properties

Property Type Description
$currentPhpVersion

Public Methods

Method Description
getBuildDir ( ) php(s) could be global, so we use ROOT path.
getCacheDir ( ) cache directory for configure.
getConfig ( )
getConfigParam ( $param = null )
getCurrentBuildDir ( )
getCurrentPhpBin ( )
getCurrentPhpConfigBin ( )
getCurrentPhpConfigScanPath ( $home = false ) XXX: This method should be migrated to PhpBrew\Build class.
getCurrentPhpDir ( $home = false )
getCurrentPhpName ( ) : string getCurrentPhpName return the current php version from self::$currentPhpVersion or from environment variable PHPBREW_PHP.
getCurrentPhpizeBin ( )
getDistFileDir ( )
getHome ( ) : string Return optional home directory.
getInstallPrefix ( ) : string A build prefix is the prefix we specified when we install the PHP.
getInstalledPhpVersions ( ) XXX: This method is now deprecated. use findMatchedBuilds insteads.
getLookupPrefix ( )
getPHPReleaseListPath ( )
getProxyConfig ( )
getRegistryDir ( )
getRoot ( )
getTempFileDir ( )
getVariantsDir ( ) Variants is private, so we use HOME path.
getVersionBinPath ( $buildName )
getVersionEtcPath ( string $buildName ) : string XXX: This method should be migrated to PhpBrew\Build class.
getVersionInstallPrefix ( $version )
initDirectories ( $buildName = null )
putPathEnvFor ( $buildName )
setPhpVersion ( $phpVersion ) XXX: needs to be removed.
setPhpbrewHome ( $home )
setPhpbrewRoot ( $root )
useSystemPhpVersion ( ) XXX: needs to be removed.

Method Details

getBuildDir() public static method

php(s) could be global, so we use ROOT path.
public static getBuildDir ( )

getCacheDir() public static method

cache directory for configure.
public static getCacheDir ( )

getConfig() public static method

public static getConfig ( )

getConfigParam() public static method

public static getConfigParam ( $param = null )

getCurrentBuildDir() public static method

public static getCurrentBuildDir ( )

getCurrentPhpBin() public static method

public static getCurrentPhpBin ( )

getCurrentPhpConfigBin() public static method

public static getCurrentPhpConfigBin ( )

getCurrentPhpConfigScanPath() public static method

XXX: This method should be migrated to PhpBrew\Build class.
public static getCurrentPhpConfigScanPath ( $home = false )

getCurrentPhpDir() public static method

public static getCurrentPhpDir ( $home = false )

getCurrentPhpName() public static method

getCurrentPhpName return the current php version from self::$currentPhpVersion or from environment variable PHPBREW_PHP.
public static getCurrentPhpName ( ) : string
return string

getCurrentPhpizeBin() public static method

public static getCurrentPhpizeBin ( )

getDistFileDir() public static method

public static getDistFileDir ( )

getHome() public static method

Return optional home directory.
public static getHome ( ) : string
return string

getInstallPrefix() public static method

when PHPBREW_ROOT is pointing to /home/user/.phpbrew php(s) will be installed into /home/user/.phpbrew/php/php-{version}
public static getInstallPrefix ( ) : string
return string

getInstalledPhpVersions() public static method

XXX: This method is now deprecated. use findMatchedBuilds insteads.
Deprecation:
public static getInstalledPhpVersions ( )

getLookupPrefix() public static method

public static getLookupPrefix ( )

getPHPReleaseListPath() public static method

public static getPHPReleaseListPath ( )

getProxyConfig() public static method

public static getProxyConfig ( )

getRegistryDir() public static method

public static getRegistryDir ( )

getRoot() public static method

public static getRoot ( )

getTempFileDir() public static method

public static getTempFileDir ( )

getVariantsDir() public static method

Variants is private, so we use HOME path.
public static getVariantsDir ( )

getVersionBinPath() public static method

public static getVersionBinPath ( $buildName )

getVersionEtcPath() public static method

XXX: This method should be migrated to PhpBrew\Build class.
public static getVersionEtcPath ( string $buildName ) : string
$buildName string
return string

getVersionInstallPrefix() public static method

public static getVersionInstallPrefix ( $version )

initDirectories() public static method

public static initDirectories ( $buildName = null )

putPathEnvFor() public static method

public static putPathEnvFor ( $buildName )

setPhpVersion() public static method

XXX: needs to be removed.
public static setPhpVersion ( $phpVersion )

setPhpbrewHome() public static method

public static setPhpbrewHome ( $home )

setPhpbrewRoot() public static method

public static setPhpbrewRoot ( $root )

useSystemPhpVersion() public static method

XXX: needs to be removed.
public static useSystemPhpVersion ( )

Property Details

$currentPhpVersion protected_oe static_oe property

protected static $currentPhpVersion