PHP Class FluxBB\Util\ConfigLoader

Datei anzeigen Open project: fluxbb/core

Public Methods

Method Description
loadFrom ( Illuminate\Contracts\Config\Repository $config, string $configPath ) : void Load the config files from the given path and store the values in the repository.

Protected Methods

Method Description
filesIn ( string $configPath ) : string[] Get all files in the given directory.

Method Details

filesIn() protected method

Returns an array with the full paths to all PHP files in the given directory, indexed by name without extension.
protected filesIn ( string $configPath ) : string[]
$configPath string
return string[]

loadFrom() public method

Load the config files from the given path and store the values in the repository.
public loadFrom ( Illuminate\Contracts\Config\Repository $config, string $configPath ) : void
$config Illuminate\Contracts\Config\Repository
$configPath string
return void