original_string: private function _insertModuleConfig($namespace, $overwrite){
  		// get module name from namespace
  		$namespace_array = explode('\\', trim($namespace,'\\'));
  		$path_array = array_slice($namespace_array, 1, 2);
  		$module_config_path = ROOT_PATH . implode('/', $path_array) . '/configs/';
  		$module_config_path = str_replace('\\', '/', $module_config_path);
  		$module_name = $path_array[1];
  
  		// create module config instance and load default params
  		$module_config = Factory::load('Config:' . $module_name);
  		$module_config->load($module_config_path);
  
  		// overwrite default params with specified params in modules.php
  		foreach($overwrite as $key => $value){
  			$module_config->set($key, $value);
  		}
  
  		// insert into modules global config
  		$this->_global_config->set('modules.' . $module_name, $module_config->get());
  	}
code: private function _insertModuleConfig($namespace, $overwrite){
  		// get module name from namespace
  		$namespace_array = explode('\\', trim($namespace,'\\'));
  		$path_array = array_slice($namespace_array, 1, 2);
  		$module_config_path = ROOT_PATH . implode('/', $path_array) . '/configs/';
  		$module_config_path = str_replace('\\', '/', $module_config_path);
  		$module_name = $path_array[1];
  
  		// create module config instance and load default params
  		$module_config = Factory::load('Config:' . $module_name);
  		$module_config->load($module_config_path);
  
  		// overwrite default params with specified params in modules.php
  		foreach($overwrite as $key => $value){
  			$module_config->set($key, $value);
  		}
  
  		// insert into modules global config
  		$this->_global_config->set('modules.' . $module_name, $module_config->get());
  	}
code_tokens: private function _insertModuleConfig ( $ namespace , $ overwrite ) { // get module name from namespace $ namespace_array = explode ( '\\' , trim ( $ namespace , '\\' ) ) ; $ path_array = array_slice ( $ namespace_array , 1 , 2 ) ; $ module_config_path = ROOT_PATH . implode ( '/' , $ path_array ) . '/configs/' ; $ module_config_path = str_replace ( '\\' , '/' , $ module_config_path ) ; $ module_name = $ path_array [ 1 ] ; // create module config instance and load default params $ module_config = Factory :: load ( 'Config:' . $ module_name ) ; $ module_config -> load ( $ module_config_path ) ; // overwrite default params with specified params in modules.php foreach ( $ overwrite as $ key => $ value ) { $ module_config -> set ( $ key , $ value ) ; } // insert into modules global config $ this -> _global_config -> set ( 'modules.' . $ module_name , $ module_config -> get ( ) ) ; }
docstring: Inserts a module's config params into the global config instance.
  @param  	string	$namespace	namespace of called module controller
  @param  	array	$overwrite	config overwrite array
docstring_tokens: Inserts a module s config params into the global config instance .