FileLoader
class FileLoader implements LoaderInterface (View source)
Properties
| protected Filesystem | $files | The filesystem instance. | |
| protected string | $defaultPath | The default configuration path. | |
| protected array | $hints | All of the named path hints. | |
| protected array | $exists | A cache of whether namespaces and groups exists. | 
Methods
Create a new file configuration loader.
Non-namespaced order: /concrete/config/group.php /application/config/generated_overrides/group.php /application/config/group.php /application/config/environment.group.php.
Determine if the given group exists.
Apply any cascades to an array of package options.
Add a new namespace to the loader.
Clear groups in a namespace.
Returns all registered namespaces with the config loader.
Get the Filesystem instance.
Load the given configuration group.
Merge the items in the given file into the items.
Get the package path for an environment and group.
Get the configuration path for a namespace.
Get a file's contents by requiring it.
No description
Details
        
                            
    __construct(Filesystem $files, string $defaultPath = DIR_CONFIG_SITE)
        
    
    Create a new file configuration loader.
        
                            array
    load(string $environment, string $group, string $namespace = null)
        
    
    Non-namespaced order: /concrete/config/group.php /application/config/generated_overrides/group.php /application/config/group.php /application/config/environment.group.php.
Namespaced order: /path/to/namespace/group.php /path/to/namespace/environment.group.php /application/config/generated_overrides/namespace/group.php /application/config/namespace/group.php /application/config/namespace/environment.group.php
        
                            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.
        
                            
    clearNamespace($namespace)
        
    
    Clear groups in a namespace.
        
                            array
    getNamespaces()
        
    
    Returns all registered namespaces with the config loader.
        
                            Filesystem
    getFilesystem()
        
    
    Get the Filesystem instance.
        
                    protected        array
    defaultLoad(string $environment, string $group, string $namespace = null)
        
    
    Load the given configuration group.
        
                    protected        array
    mergeEnvironment(array $items, string $file)
        
    
    Merge the items in the given file into the items.
        
                    protected        string
    getPackagePath(string $env, string $package, string $group)
        
    
    Get the package path for an environment and group.
        
                    protected        string
    getPath(string $namespace)
        
    
    Get the configuration path for a namespace.
        
                    protected        mixed
    getRequire(string $path)
        
    
    Get a file's contents by requiring it.
        
                        private    string[]
    getNamespaceDefaultPaths(string $namespace)
        
    
    No description