PHP Class PhpBrew\Config

Afficher le fichier Open project: phpbrew/phpbrew Class Usage Examples

Protected Properties

Свойство Type Description
$currentPhpVersion

Méthodes publiques

Méthode 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 méthode

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

getCacheDir() public static méthode

cache directory for configure.
public static getCacheDir ( )

getConfig() public static méthode

public static getConfig ( )

getConfigParam() public static méthode

public static getConfigParam ( $param = null )

getCurrentBuildDir() public static méthode

public static getCurrentBuildDir ( )

getCurrentPhpBin() public static méthode

public static getCurrentPhpBin ( )

getCurrentPhpConfigBin() public static méthode

public static getCurrentPhpConfigBin ( )

getCurrentPhpConfigScanPath() public static méthode

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

getCurrentPhpDir() public static méthode

public static getCurrentPhpDir ( $home = false )

getCurrentPhpName() public static méthode

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

getCurrentPhpizeBin() public static méthode

public static getCurrentPhpizeBin ( )

getDistFileDir() public static méthode

public static getDistFileDir ( )

getHome() public static méthode

Return optional home directory.
public static getHome ( ) : string
Résultat string

getInstallPrefix() public static méthode

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
Résultat string

getInstalledPhpVersions() public static méthode

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

getLookupPrefix() public static méthode

public static getLookupPrefix ( )

getPHPReleaseListPath() public static méthode

public static getPHPReleaseListPath ( )

getProxyConfig() public static méthode

public static getProxyConfig ( )

getRegistryDir() public static méthode

public static getRegistryDir ( )

getRoot() public static méthode

public static getRoot ( )

getTempFileDir() public static méthode

public static getTempFileDir ( )

getVariantsDir() public static méthode

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

getVersionBinPath() public static méthode

public static getVersionBinPath ( $buildName )

getVersionEtcPath() public static méthode

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

getVersionInstallPrefix() public static méthode

public static getVersionInstallPrefix ( $version )

initDirectories() public static méthode

public static initDirectories ( $buildName = null )

putPathEnvFor() public static méthode

public static putPathEnvFor ( $buildName )

setPhpVersion() public static méthode

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

setPhpbrewHome() public static méthode

public static setPhpbrewHome ( $home )

setPhpbrewRoot() public static méthode

public static setPhpbrewRoot ( $root )

useSystemPhpVersion() public static méthode

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

Property Details

$currentPhpVersion protected_oe static_oe property

protected static $currentPhpVersion