protected static function loadConfigurationFiles(KernelContract $kernel, RepositoryContract $config): void
    {
        foreach (static::getFiles($kernel->getConfigPath('packages'), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }

        foreach (static::getFiles($kernel->getConfigPath(), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }

        foreach (static::getFiles($kernel->getConfigPath($kernel->getEnvironment()), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }

        foreach (static::getFiles($kernel->getConfigPath('packages' . \DIRECTORY_SEPARATOR . $kernel->getEnvironment()), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }
    }
protected static function loadConfigurationFiles(KernelContract $kernel, RepositoryContract $config): void
    {
        foreach (static::getFiles($kernel->getConfigPath('packages'), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }

        foreach (static::getFiles($kernel->getConfigPath(), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }

        foreach (static::getFiles($kernel->getConfigPath($kernel->getEnvironment()), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }

        foreach (static::getFiles($kernel->getConfigPath('packages' . \DIRECTORY_SEPARATOR . $kernel->getEnvironment()), self::CONFIG_EXTS) as $path) {
            $config->import($path);
        }
    }
protected static function loadConfigurationFiles ( KernelContract $ kernel , RepositoryContract $ config ) : void { foreach ( static :: getFiles ( $ kernel -> getConfigPath ( 'packages' ) , self :: CONFIG_EXTS ) as $ path ) { $ config -> import ( $ path ) ; } foreach ( static :: getFiles ( $ kernel -> getConfigPath ( ) , self :: CONFIG_EXTS ) as $ path ) { $ config -> import ( $ path ) ; } foreach ( static :: getFiles ( $ kernel -> getConfigPath ( $ kernel -> getEnvironment ( ) ) , self :: CONFIG_EXTS ) as $ path ) { $ config -> import ( $ path ) ; } foreach ( static :: getFiles ( $ kernel -> getConfigPath ( 'packages' . \ DIRECTORY_SEPARATOR . $ kernel -> getEnvironment ( ) ) , self :: CONFIG_EXTS ) as $ path ) { $ config -> import ( $ path ) ; } }
Load the configuration items from all of the files.

@param \Viserio\Component\Contract\Foundation\Kernel $kernel
@param \Viserio\Component\Contract\Config\Repository $config

@return void
Load the configuration items from all of the files .