PHP Class Yosymfony\Spress\Core\Configuration\Configuration

Configuration priority: Default -> config.yml -> config_:env.yml where ":env" is the environment name.
Author: Victor Puertas ([email protected])
Inheritance: implements Yosymfony\Spress\Core\Configuration\ConfigurationInterface
ファイルを表示 Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( Yosymfony\ConfigLoader\Config $configLoader, string $defaultConfigFilename ) Constructor. By default the configuration filename is "config.yml" and the template for environment filename is "config_:env.yml".
loadConfiguration ( $sitePath, $envName = null )
setConfigFilename ( string $filename ) Sets the configuration filename. e.g: "config.yml".
setTemplateEnvFilename ( string $templateFilename ) Sets the template for filename related with environment configuration.

Private Methods

Method Description
getConfigEnvFilename ( $env )
getConfigurationResolver ( )
isSpressSite ( $sitePath )
loadDefaultConfiguration ( )
loadEnvironmentConfiguration ( $sitePath, $env )

Method Details

__construct() public method

Constructor. By default the configuration filename is "config.yml" and the template for environment filename is "config_:env.yml".
public __construct ( Yosymfony\ConfigLoader\Config $configLoader, string $defaultConfigFilename )
$configLoader Yosymfony\ConfigLoader\Config
$defaultConfigFilename string Path to filename with defatul configuration

loadConfiguration() public method

public loadConfiguration ( $sitePath, $envName = null )

setConfigFilename() public method

Sets the configuration filename. e.g: "config.yml".
public setConfigFilename ( string $filename )
$filename string

setTemplateEnvFilename() public method

e.g: "config_:env.yml". Placeholders: - ":env" will be replaced by the environment's name.
public setTemplateEnvFilename ( string $templateFilename )
$templateFilename string