PHP Class PPI\Framework\Config\ConfigLoader

Author: Vítor Brandão ([email protected])
Datei anzeigen Open project: ppi/framework Class Usage Examples

Protected Properties

Property Type Description
$loader PPI\Framework\Config\Loader\DelegatingLoader
$paths array

Public Methods

Method Description
__construct ( string | array $paths = [] ) Constructor.
getLoader ( ) : PPI\Framework\Config\Loader\DelegatingLoader Returns a loader to handle config loading.
load ( mixed $resource, string $type = null ) : array Loads a resource.

Method Details

__construct() public method

Constructor.
public __construct ( string | array $paths = [] )
$paths string | array A path or an array of paths where to look for resources

getLoader() public method

Returns a loader to handle config loading.
public getLoader ( ) : PPI\Framework\Config\Loader\DelegatingLoader
return PPI\Framework\Config\Loader\DelegatingLoader The loader

load() public method

Loads a resource.
public load ( mixed $resource, string $type = null ) : array
$resource mixed The resource
$type string The resource type
return array

Property Details

$loader protected_oe property

protected DelegatingLoader,PPI\Framework\Config\Loader $loader
return PPI\Framework\Config\Loader\DelegatingLoader

$paths protected_oe property

protected array $paths
return array