public function registerConfig(string $filePath = null)
    {
        is_file($filePath) || $filePath = App::getBasePath() . $filePath;

        if (is_file($filePath)) {
            /** @noinspection PhpIncludeInspection */
            $configItems = require_once $filePath;

            if (is_array($configItems)) {
                foreach ($configItems as $key => $value) {
                    if (Config::exists($key)) {
                        Config::merge($key, $value);
                    } else {
                        Config::item($key, $value);
                    }
                }
            }

            if ($value = Config::exists('errors.error_reporting', null)) {
                ini_set('error_reporting', $value);
            }

            if ($value = Config::exists('errors.display_errors', null)) {
                ini_set('display_errors', $value);
            }

            Event::dispatch('minimal.loaded.config', [$filePath,
                is_array($configItems) ? $configItems : []
            ]);
        }
    }