src/Module/ModuleLoader.php
private function loadRequiredModules(
		Module $module,
		&$modules,
		array $moduleList,
		DependencyInjectionContainer $dic) {
		foreach ($module->getRequiredModules() as $requiredModule) {
			if (!\in_array($requiredModule, $moduleList)) {
				$this->loadModule($requiredModule, $modules, $moduleList, $dic);
				if ($module instanceof RequiredModuleAwareModule) {
					$module->addRequiredModule($dic->make($requiredModule));
				}
			}
		}
	}
private function loadRequiredModules(
		Module $module,
		&$modules,
		array $moduleList,
		DependencyInjectionContainer $dic) {
		foreach ($module->getRequiredModules() as $requiredModule) {
			if (!\in_array($requiredModule, $moduleList)) {
				$this->loadModule($requiredModule, $modules, $moduleList, $dic);
				if ($module instanceof RequiredModuleAwareModule) {
					$module->addRequiredModule($dic->make($requiredModule));
				}
			}
		}
	}
private function loadRequiredModules ( Module $ module , & $ modules , array $ moduleList , DependencyInjectionContainer $ dic ) { foreach ( $ module -> getRequiredModules ( ) as $ requiredModule ) { if ( ! \ in_array ( $ requiredModule , $ moduleList ) ) { $ this -> loadModule ( $ requiredModule , $ modules , $ moduleList , $ dic ) ; if ( $ module instanceof RequiredModuleAwareModule ) { $ module -> addRequiredModule ( $ dic -> make ( $ requiredModule ) ) ; } } } }
Load the modules a certain module requires.

@param Module                       $module
@param Module[]                     $modules
@param array                        $moduleList
@param DependencyInjectionContainer $dic
Load the modules a certain module requires .