Puli\Manager\Api\Module\RootModuleFile::getInstallInfos PHP Method

getInstallInfos() public method

Returns the install infos of all installed modules.
public getInstallInfos ( ) : Puli\Manager\Api\Module\InstallInfo[]
return Puli\Manager\Api\Module\InstallInfo[] The install infos.
    public function getInstallInfos()
    {
        // The module names as array keys are for internal use only
        return array_values($this->installInfos);
    }

Usage Example

Example #1
0
 /**
  * Loads all modules referenced by the install file.
  *
  * @throws FileNotFoundException  If the install path of a module not exist.
  * @throws NoDirectoryException   If the install path of a module points to a
  *                                file.
  * @throws InvalidConfigException If a module is not configured correctly.
  * @throws NameConflictException  If a module has the same name as another
  *                                loaded module.
  */
 private function loadModules()
 {
     $this->modules = new ModuleList();
     $this->modules->add(new RootModule($this->rootModuleFile, $this->rootDir));
     foreach ($this->rootModuleFile->getInstallInfos() as $installInfo) {
         $this->modules->add($this->loadModule($installInfo));
     }
 }
All Usage Examples Of Puli\Manager\Api\Module\RootModuleFile::getInstallInfos