mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +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:
parent
868ff166b1
commit
14e3c727cc
1 changed files with 13 additions and 1 deletions
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue