Exemplo n.º 1
0
 public function save()
 {
     parent::save();
     if (!empty($this->dirty['httpd'])) {
         $this->httpd->restart();
         unset($this->dirty['httpd']);
     }
 }
Exemplo n.º 2
0
 /**
  * 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);
 }