PHP Class Bolt\Configuration\PreBoot\ConfigurationFile

Author: Gawain Lynch ([email protected])
Datei anzeigen Open project: bolt/bolt Class Usage Examples

Public Methods

Method Description
checkConfigFile ( string $configName, string $rootConfigDir, string $siteConfigPath ) : null Check a named configuration file.
checkConfigFiles ( array $configNames, string $rootConfigDir, string $siteConfigPath ) : null Check an array of named configuration files.

Method Details

checkConfigFile() public static method

- If file exists, and readable, do nothing. - Attempt to copy .yml.dist file to the working .yml name/location
public static checkConfigFile ( string $configName, string $rootConfigDir, string $siteConfigPath ) : null
$configName string
$rootConfigDir string
$siteConfigPath string
return null

checkConfigFiles() public static method

Check an array of named configuration files.
public static checkConfigFiles ( array $configNames, string $rootConfigDir, string $siteConfigPath ) : null
$configNames array
$rootConfigDir string
$siteConfigPath string
return null