FileLoader (Config)
FileLoader
class FileLoader implements LoaderInterface (View source)
Methods
void | __construct(Filesystem $files, string $defaultPath) Create a new file configuration loader. | |
array | load(string $environment, string $group, string $namespace = null) Load the given configuration group. | |
bool | exists(string $group, string $namespace = null) Determine if the given group exists. | |
array | cascadePackage(string $env, string $package, string $group, array $items) Apply any cascades to an array of package options. | |
void | addNamespace(string $namespace, string $hint) Add a new namespace to the loader. | |
array | getNamespaces() Returns all registered namespaces with the config loader. | |
Filesystem | getFilesystem() Get the Filesystem instance. |
Details
void __construct(Filesystem $files, string $defaultPath)
Create a new file configuration loader.
array load(string $environment, string $group, string $namespace = null)
Load the given configuration group.
bool exists(string $group, string $namespace = null)
Determine if the given group exists.
array cascadePackage(string $env, string $package, string $group, array $items)
Apply any cascades to an array of package options.
void addNamespace(string $namespace, string $hint)
Add a new namespace to the loader.
array getNamespaces()
Returns all registered namespaces with the config loader.
Filesystem getFilesystem()
Get the Filesystem instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Config/FileLoader.html