/** * Save menu XML files * * @return void */ public function saveMenuFiles() { if (true == $this->_isPreviewMode) { return; } /** @var $dom \DOMDocument **/ foreach ($this->_menuDomList as $file => $dom) { $dom->formatOutput = true; $this->_fileManager->write($file, $dom->saveXML()); } }
/** * Save artifacts files * * @param array $artifacts * @return void */ public function saveArtifacts($artifacts) { foreach ($artifacts as $file => $data) { $this->_fileManager->write($this->_artifactsPath . $file, $data); } }