PHP Class Behat\Testwork\ServiceContainer\Configuration\ConfigurationLoader

Author: Konstantin Kudryashov ([email protected])
Mostrar archivo Open project: behat/behat Class Usage Examples

Public Methods

Method Description
__construct ( string $environmentVariableName = null, string $configurationPath = null ) Constructs reader.
debugInformation ( ) : array Returns array with configuration debug information.
getConfigurationFilePath ( ) : null | string Returns configuration file path.
getEnvironmentVariableName ( ) : null | string Returns environment variable name.
loadConfiguration ( string $profile = 'default' ) : array Reads configuration sequence for specific profile.
setConfigurationFilePath ( null | string $path ) Sets configuration file path.
setEnvironmentVariableName ( null | string $variable ) Sets environment variable name.

Protected Methods

Method Description
loadEnvironmentConfiguration ( ) : array Loads information from environment variable.
loadFileConfiguration ( string $configPath, string $profile ) : array Loads information from YAML configuration file.

Private Methods

Method Description
loadConfigs ( string $basePath, array $config, string $profile ) : array Loads configs for provided config and profile.
loadImports ( string $basePath, array $paths, string $profile ) : array Loads all provided imports.
parseImport ( string $basePath, string $path, string $profile ) : array Parses import.

Method Details

__construct() public method

Constructs reader.
public __construct ( string $environmentVariableName = null, string $configurationPath = null )
$environmentVariableName string Environment variable name
$configurationPath string Configuration file path

debugInformation() public method

Returns array with configuration debug information.
public debugInformation ( ) : array
return array

getConfigurationFilePath() public method

Returns configuration file path.
public getConfigurationFilePath ( ) : null | string
return null | string

getEnvironmentVariableName() public method

Returns environment variable name.

loadConfiguration() public method

Reads configuration sequence for specific profile.
public loadConfiguration ( string $profile = 'default' ) : array
$profile string Profile name
return array

loadEnvironmentConfiguration() protected method

Loads information from environment variable.
protected loadEnvironmentConfiguration ( ) : array
return array

loadFileConfiguration() protected method

Loads information from YAML configuration file.
protected loadFileConfiguration ( string $configPath, string $profile ) : array
$configPath string Config file path
$profile string Profile name
return array

setConfigurationFilePath() public method

Sets configuration file path.
public setConfigurationFilePath ( null | string $path )
$path null | string

setEnvironmentVariableName() public method

Sets environment variable name.
public setEnvironmentVariableName ( null | string $variable )
$variable null | string