/** * * @param string $moduleDirectory * @param array $moduleInfo * @param string $launcher */ public function __construct($moduleDirectory, $moduleInfo, $launcher) { $this->moduleInfo = $moduleInfo; $this->moduleDirectory = $moduleDirectory; $this->launcher = $launcher; $this->moduleFullName = $this->moduleInfo['name']; $this->moduleSlug = $this->moduleInfo['shortname']; $this->versionManager = new Versioning($this->moduleSlug); $this->versionManager->setVersion($this->moduleInfo['version']); $this->versionManager->setModuleInfo($this->moduleInfo); $this->chidlrenModules = Informations::getChildren($this->moduleSlug, 'id, name, version'); }