webhook support
[phorkie.git] / src / phorkie / Repository.php
index 815ef5e4e56ac6a73ba440a86f85947dcb470377..f45c76f72a7e8317ed15f23ba5e48d9a99cfbbf0 100644 (file)
@@ -208,8 +208,13 @@ class Repository
         $db = new Database();
         $db->getIndexer()->deleteRepo($this);
 
-        return Tools::recursiveDelete($this->workDir)
+        $bOk = Tools::recursiveDelete($this->workDir)
             && Tools::recursiveDelete($this->gitDir);
+
+        $not = new Notificator();
+        $not->delete($this);
+
+        return $bOk;
     }
 
     public function getTitle()