1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00

Allow Arcanist Projects to be deleted using ./bin/remove destroy.

Summary: Self-explanatory.

Test Plan: Created (and destroyed) an arcanist project. Verified that the deletion actually happened.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T4749

Differential Revision: https://secure.phabricator.com/D9353
This commit is contained in:
Joshua Spence 2014-06-16 04:49:51 +10:00
parent 868ff166b1
commit 14e3c727cc

View file

@ -5,7 +5,8 @@
*/ */
final class PhabricatorRepositoryArcanistProject final class PhabricatorRepositoryArcanistProject
extends PhabricatorRepositoryDAO extends PhabricatorRepositoryDAO
implements PhabricatorPolicyInterface { implements PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
protected $name; protected $name;
protected $repositoryID; protected $repositoryID;
@ -90,4 +91,15 @@ final class PhabricatorRepositoryArcanistProject
return null; return null;
} }
/* -( PhabricatorDestructableInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {
$this->openTransaction();
$this->delete();
$this->saveTransaction();
}
} }