PHP Class Sculpin\Core\SiteConfiguration\SiteConfigurationFactory

Author: Beau Simensen ([email protected])
ファイルを表示 Open project: sculpin/sculpin

Public Methods

Method Description
__construct ( string $rootDir, string $environment ) Constructor.
create ( ) : Dflydev\DotAccessConfiguration\Configuration Create Site Configuration
detectConfig ( ) : Dflydev\DotAccessConfiguration\Configuration Detect configuration file and create Site Configuration from it

Private Methods

Method Description
getConfigFile ( string $configFile ) : Dflydev\DotAccessConfiguration\YamlFileConfigurationBuilder Get an instance of the Configuration() class from the given file.

Method Details

__construct() public method

Constructor.
public __construct ( string $rootDir, string $environment )
$rootDir string Root directory
$environment string Environment

create() public method

Create Site Configuration
public create ( ) : Dflydev\DotAccessConfiguration\Configuration
return Dflydev\DotAccessConfiguration\Configuration

detectConfig() public method

Detect configuration file and create Site Configuration from it
public detectConfig ( ) : Dflydev\DotAccessConfiguration\Configuration
return Dflydev\DotAccessConfiguration\Configuration