protected function applyModuleConfig($config)
    {
        if (isset($config['mpf\\web\\request\\HTML'])) {
            foreach ($config['mpf\\web\\request\\HTML'] as $k => $v) {
                $this->$k = $v;
            }
        }
        if (isset($config['mpf\\WebApp'])) {
            foreach ($config['mpf\\WebApp'] as $k => $v) {
                WebApp::get()->$k = $v;
            }
        }
        foreach ($config as $class => $options) {
            if (in_array($class, ['namespace', 'path'])) // this are keywords for module itself not other classes
                continue;
            Config::get()->set($class, $options);
        }
        return $this;
    }
protected function applyModuleConfig($config)
    {
        if (isset($config['mpf\\web\\request\\HTML'])) {
            foreach ($config['mpf\\web\\request\\HTML'] as $k => $v) {
                $this->$k = $v;
            }
        }
        if (isset($config['mpf\\WebApp'])) {
            foreach ($config['mpf\\WebApp'] as $k => $v) {
                WebApp::get()->$k = $v;
            }
        }
        foreach ($config as $class => $options) {
            if (in_array($class, ['namespace', 'path'])) // this are keywords for module itself not other classes
                continue;
            Config::get()->set($class, $options);
        }
        return $this;
    }
protected function applyModuleConfig ( $ config ) { if ( isset ( $ config [ 'mpf\\web\\request\\HTML' ] ) ) { foreach ( $ config [ 'mpf\\web\\request\\HTML' ] as $ k => $ v ) { $ this -> $ k = $ v ; } } if ( isset ( $ config [ 'mpf\\WebApp' ] ) ) { foreach ( $ config [ 'mpf\\WebApp' ] as $ k => $ v ) { WebApp :: get ( ) -> $ k = $ v ; } } foreach ( $ config as $ class => $ options ) { if ( in_array ( $ class , [ 'namespace' , 'path' ] ) ) // this are keywords for module itself not other classes continue ; Config :: get ( ) -> set ( $ class , $ options ) ; } return $ this ; }
Updates Config class with values from Module config.
@param string [string] $config
@return $this
Updates Config class with values from Module config .