private function loadConfigFromFiles()
    {
        /** @var \Core\Services\Contracts\Config $config */
        $config = DI::getInstance()->get('config');

        foreach (scandir($this->configPath) as $file) {
            if (is_file($this->configPath . DIRECTORY_SEPARATOR . $file) && $file[0] != '.') {
                /** @noinspection PhpIncludeInspection */
                $config->set(basename($file, '.php'), require $this->configPath . DIRECTORY_SEPARATOR . $file);
            }
        }

        return $config;
    }