src/Viserio/Component/Config/Bootstrap/LoadConfiguration.php
public static function bootstrap(KernelContract $kernel): void
    {
        $container = $kernel->getContainer();
        $container->register(new ConfigServiceProvider());

        $config = $container->get(RepositoryContract::class);

        $loadedFromCache = false;

        // First we will see if we have a cache configuration file.
        // If we do, we'll load the configuration items.
        if (\file_exists($cached = $kernel->getStoragePath('framework' . \DIRECTORY_SEPARATOR . 'config.cache.php'))) {
            $items = require $cached;

            $config->setArray($items, true);

            $loadedFromCache = true;
        }

        // Next we will spin through all of the configuration files in the configuration
        // directory and load each one into the config manager.
        if (! $loadedFromCache) {
            $config->set('viserio.app.env', $kernel->getEnvironment());

            static::loadConfigurationFiles($kernel, $config);
        }
    }
public static function bootstrap(KernelContract $kernel): void
    {
        $container = $kernel->getContainer();
        $container->register(new ConfigServiceProvider());

        $config = $container->get(RepositoryContract::class);

        $loadedFromCache = false;

        // First we will see if we have a cache configuration file.
        // If we do, we'll load the configuration items.
        if (\file_exists($cached = $kernel->getStoragePath('framework' . \DIRECTORY_SEPARATOR . 'config.cache.php'))) {
            $items = require $cached;

            $config->setArray($items, true);

            $loadedFromCache = true;
        }

        // Next we will spin through all of the configuration files in the configuration
        // directory and load each one into the config manager.
        if (! $loadedFromCache) {
            $config->set('viserio.app.env', $kernel->getEnvironment());

            static::loadConfigurationFiles($kernel, $config);
        }
    }
{@inheritdoc}