/** * * @param type $childrenModule * @param type $childrenModuleDirectory */ protected function deployChildrenForms($childrenModule, $childrenModuleDirectory) { $this->installChildrenValidators($childrenModuleDirectory); $childrenModuleFormFiles = glob($childrenModuleDirectory . '/install/forms/*.xml'); foreach ($childrenModuleFormFiles as $formFile) { Form::installFromXml($childrenModule['id'], $formFile); } }
/** * * @param string $object * @cmdObject string module the host */ public function deployFormsAction($object) { echo Colorize::colorizeMessage("Deployment of Forms...", "info"); try { $modulePath = Informations::getModulePath($object['module']); $moduleId = Informations::getModuleIdByName($object['module']); $formsFiles = $modulePath . '/install/forms/*.xml'; foreach (glob($formsFiles) as $xmlFile) { Form::installFromXml($moduleId, $xmlFile); } echo Colorize::colorizeMessage(" Done", "success"); } catch (\Exception $ex) { throw new \Exception(" " . $ex->getMessage(), 1); } }