\BorisConfig

Config handles loading configuration files for boris

Summary

Methods
Properties
Constants
__construct()
apply()
loadedFiles()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_loadInIsolation()
$_searchPaths
$_cascade
$_files
N/A

Properties

$_searchPaths

$_searchPaths : 

Type

$_cascade

$_cascade : 

Type

$_files

$_files : 

Type

Methods

__construct()

__construct(array  $searchPaths = null, boolean  $cascade = false) 

Create a new Config instance, optionally with an array of paths to search for configuration files.

Additionally, if the second, optional boolean argument is true, all existing configuration files will be loaded, and effectively merged.

Parameters

array $searchPaths
boolean $cascade

apply()

apply(\Boris\Boris\Boris  $boris) : boolean

Searches for configuration files in the available search paths, and applies them to the provided boris instance.

Returns true if any configuration files were found.

Parameters

\Boris\Boris\Boris $boris

Returns

boolean

loadedFiles()

loadedFiles() : array

Returns an array of files that were loaded for this Config

Returns

array

_loadInIsolation()

_loadInIsolation(  $path,   $boris) 

Parameters

$path
$boris