private function loadConfigPackages()
    {
        $config = Container::getInstance()->get('config');
        $list   = $config->get('global.package');

        if (empty($list) || !is_array($list)) {
            return;
        }

        foreach ($list as $name => $data) {
            if (!isset($data['config'])) {
                continue;
            }

            $config->loadYamlFromDirectory($data['config']);
        }
    }
private function loadConfigPackages()
    {
        $config = Container::getInstance()->get('config');
        $list   = $config->get('global.package');

        if (empty($list) || !is_array($list)) {
            return;
        }

        foreach ($list as $name => $data) {
            if (!isset($data['config'])) {
                continue;
            }

            $config->loadYamlFromDirectory($data['config']);
        }
    }
private function loadConfigPackages ( ) { $ config = Container :: getInstance ( ) -> get ( 'config' ) ; $ list = $ config -> get ( 'global.package' ) ; if ( empty ( $ list ) || ! is_array ( $ list ) ) { return ; } foreach ( $ list as $ name => $ data ) { if ( ! isset ( $ data [ 'config' ] ) ) { continue ; } $ config -> loadYamlFromDirectory ( $ data [ 'config' ] ) ; } }
Load configs from packages.

@return void
Load configs from packages .