Example #1
0
 public function writeUninstall()
 {
     $content = $this->module->getUninstallScript();
     $oldPath = $this->writer->getPath();
     $newPath = $this->module->getSettings()->getXmlRootPath() . '/' . Settings::MODULES_DIR_NAME . '/';
     $destination = $this->module->getNamespace() . '_' . $this->module->getModuleName() . '/uninstall.sql';
     $this->writer->setPath($newPath);
     $this->writer->write($destination, $content);
     $this->writer->setPath($oldPath);
     return $this;
 }