public function initialize()
    {
        $modules = $this->loader->getModules();

        if (empty($modules)) {
            throw new RuntimeException('No modules found. Initialization halted');
        } else {
            $this->loadAll($modules);
            $this->modules = $modules;

            // Validate on demand
            $this->validateCoreModuleNames();
        }
    }
public function initialize()
    {
        $modules = $this->loader->getModules();

        if (empty($modules)) {
            throw new RuntimeException('No modules found. Initialization halted');
        } else {
            $this->loadAll($modules);
            $this->modules = $modules;

            // Validate on demand
            $this->validateCoreModuleNames();
        }
    }
public function initialize ( ) { $ modules = $ this -> loader -> getModules ( ) ; if ( empty ( $ modules ) ) { throw new RuntimeException ( 'No modules found. Initialization halted' ) ; } else { $ this -> loadAll ( $ modules ) ; $ this -> modules = $ modules ; // Validate on demand $ this -> validateCoreModuleNames ( ) ; } }
Initializes the module manager

@throws \RuntimeException If no modules found
@return void
Initializes the module manager