PHP Class M1\Vars\Loader\LoaderProvider

Since: 0.1.1
Show file Open project: m1/Vars

Public Methods

Method Description
__construct ( array | null $options, array $default_loaders ) The constructor for LoaderProvider, makes the loaders and extensions
getExtensions ( ) : array Get the Vars file loaders extensions
getLoaders ( ) : array Get the Vars file loaders

Private Methods

Method Description
makeExtensions ( array $loaders ) : array Get and make extensions for loaders made from makeLoaders()
makeLoaders ( array | null $options, array $default_loaders ) Get loaders and make extensions for the loaders
makeNameSpaceLoaders ( array $loaders, array $default_loaders ) : array Makes namespace loaders from loader strings
preParseLoaders ( array | null $options, array $default_loaders ) : array Pre parse the loaders for use in make loaders

Method Details

__construct() public method

The constructor for LoaderProvider, makes the loaders and extensions
public __construct ( array | null $options, array $default_loaders )
$options array | null The options being used for Vars
$default_loaders array The default loaders for Vars

getExtensions() public method

Get the Vars file loaders extensions
public getExtensions ( ) : array
return array The Vars file loader extensions

getLoaders() public method

Get the Vars file loaders
public getLoaders ( ) : array
return array The Vars file loaders