Uninstall Conduit calls when uninstalling applications

Summary: Fixes T2698. When applications are installed, their Conduit calls should drop out. This will also let us land Releeph without exposing Conduit calls.

Test Plan:
  - Viewed Conduit console; uninstalled some applications and verified their calls dropped out.
  - Tried to make an uninstalled call; got an appropriate error.

Reviewers: edward, btrahan

Reviewed By: edward

CC: aran

Maniphest Tasks: T2698

Differential Revision: https://secure.phabricator.com/D5302
This commit is contained in:
epriestley
2013-03-13 07:09:05 -07:00
parent 1341c8a6c1
commit 855e085c6f
38 changed files with 215 additions and 43 deletions

View File

@@ -0,0 +1,13 @@
<?php
/**
* @group conduit
*/
abstract class ConduitAPI_phpast_Method extends ConduitAPIMethod {
public function getApplication() {
return PhabricatorApplication::getByClass(
'PhabricatorApplicationPHPAST');
}
}

View File

@@ -3,7 +3,8 @@
/**
* @group conduit
*/
final class ConduitAPI_phpast_getast_Method extends ConduitAPIMethod {
final class ConduitAPI_phpast_getast_Method
extends ConduitAPI_phpast_Method {
public function getMethodDescription() {
return "Parse a piece of PHP code.";

View File

@@ -3,7 +3,8 @@
/**
* @group conduit
*/
final class ConduitAPI_phpast_version_Method extends ConduitAPIMethod {
final class ConduitAPI_phpast_version_Method
extends ConduitAPI_phpast_Method {
public function getMethodDescription() {
return "Get server xhpast version.";