PHP Class Platformsh\Cli\CliConfig

Afficher le fichier Open project: commerceguys/platform-cli Class Usage Examples

Protected Properties

Свойство Type Description
$config
$env
$userConfig

Méthodes publiques

Méthode Description
__construct ( array $env = null, string | null $defaultsFile = null, boolean $reset = false )
get ( string $name ) : mixed
getUserConfig ( ) : array
getUserConfigDir ( ) : string
has ( string $name, boolean $notNull = true ) : boolean
writeUserConfig ( array $config ) Update user configuration.

Méthodes protégées

Méthode Description
applyEnvironmentOverrides ( )
applyUserConfigOverrides ( )
getEnv ( string $name ) : mixed | false Get an environment variable
loadConfigFromFile ( string $filename ) : array

Method Details

__construct() public méthode

public __construct ( array $env = null, string | null $defaultsFile = null, boolean $reset = false )
$env array
$defaultsFile string | null
$reset boolean

applyEnvironmentOverrides() protected méthode

applyUserConfigOverrides() protected méthode

protected applyUserConfigOverrides ( )

get() public méthode

public get ( string $name ) : mixed
$name string
Résultat mixed

getEnv() protected méthode

Get an environment variable
protected getEnv ( string $name ) : mixed | false
$name string The variable name. The configured prefix will be prepended.
Résultat mixed | false The value of the environment variable, or false if it is not set.

getUserConfig() public méthode

public getUserConfig ( ) : array
Résultat array

getUserConfigDir() public méthode

public getUserConfigDir ( ) : string
Résultat string

has() public méthode

public has ( string $name, boolean $notNull = true ) : boolean
$name string
$notNull boolean
Résultat boolean

loadConfigFromFile() protected méthode

protected loadConfigFromFile ( string $filename ) : array
$filename string
Résultat array

writeUserConfig() public méthode

Update user configuration.
public writeUserConfig ( array $config )
$config array

Property Details

$config protected_oe static_oe property

protected static $config

$env protected_oe property

protected $env

$userConfig protected_oe property

protected $userConfig