public function save() { parent::save(); if (!empty($this->dirty['httpd'])) { $this->httpd->restart(); unset($this->dirty['httpd']); } }
/** * Remove the named instance * @param $name */ public function remove($name) { $instance = $this->find($name); if ($instance) { if ($instance->getDsn()) { $this->db->dropDatabase($instance->getDatasource()); } if ($instance->getUrl()) { $this->httpd->dropVhost($instance->getRoot(), $instance->getUrl()); } } parent::remove($name); }