src/Foundation/Services/Configuration.php
/**
	 * Loads a configuration file with the specified name. The name must not include '.php' and loads from the
	 * app's config directory.
	 *
	 * @param string $name
	 * @throws HorizonException
	 * @return void
	 */
Loads a configuration file with the specified name. The name must not include '.php' and loads from the
app's config directory.

@param string $name
@throws HorizonException
@return void
Loads a configuration file with the specified name . The name must not include ' . php ' and loads from the app ' s config directory . @param string $name @throws HorizonException @return void
public static function loadConfigurationFile($name) {
		$path = Application::paths()->config($name . '.php');
		if (!file_exists($path)) {
			throw new HorizonException(0x0002, $path);
		}
		$config = require $path;
		if (!is_array($config)) {
			throw new HorizonException(0x0003, $path);
		}
		self::$config[$name] = $config;
	}
public static function loadConfigurationFile ( $ name ) { $ path = Application :: paths ( ) -> config ( $ name . '.php' ) ; if ( ! file_exists ( $ path ) ) { throw new HorizonException ( 0x0002 , $ path ) ; } $ config = require $ path ; if ( ! is_array ( $ config ) ) { throw new HorizonException ( 0x0003 , $ path ) ; } self :: $ config [ $ name ] = $ config ; }
Loads a configuration file with the specified name.
Loads a configuration file with the specified name .
// Throw an exception if the file doesn't exist // Require the file - it should return an array // Verify type array // Store the array