PHP 클래스 Pantheon\Terminus\Config

상속: extends Robo\Config
파일 보기 프로젝트 열기: pantheon-systems/terminus 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor for Config
ensureDirExists ( string $name, string $value ) : boolean | null Ensures a directory exists
fixDirectorySeparators ( string $path ) : string Ensures that directory paths work in any system
get ( $key, $defaultOverride = null )
getGlobalOptionDefaultValues ( )
getHomeDir ( ) : string Returns the appropriate home directory.

비공개 메소드들

메소드 설명
configure ( ) : void Sets constants necessary for the proper functioning of Terminus
getKeyFromConstant ( string $constant_name ) : string Reflects a key name given a Terminus constant name
getPhpBinary ( ) : string Returns location of PHP with which to run Terminus
getTerminusRoot ( string $current_dir = null ) : string Finds and returns the root directory of Terminus
getTerminusScript ( ) : string Finds and returns the name of the script running Terminus functions
importEnvironmentVariables ( ) : void Imports environment variables
replacePlaceholders ( string $string ) : string Exchanges values in [[ ]] in the given string with constants

메소드 상세

__construct() 공개 메소드

Constructor for Config
public __construct ( )

ensureDirExists() 공개 메소드

Ensures a directory exists
public ensureDirExists ( string $name, string $value ) : boolean | null
$name string The name of the config var
$value string The value of the named config var
리턴 boolean | null

fixDirectorySeparators() 공개 메소드

Ensures that directory paths work in any system
public fixDirectorySeparators ( string $path ) : string
$path string A path to set the directory separators for
리턴 string

get() 공개 메소드

public get ( $key, $defaultOverride = null )

getGlobalOptionDefaultValues() 공개 메소드

getHomeDir() 공개 메소드

Adapted from Terminus Package Manager by Ed Reel
public getHomeDir ( ) : string
리턴 string