Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15467774
D8500.id20176.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D8500.id20176.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -217,9 +217,6 @@
'ConduitAPI_phid_info_Method' => 'applications/phid/conduit/ConduitAPI_phid_info_Method.php',
'ConduitAPI_phid_lookup_Method' => 'applications/phid/conduit/ConduitAPI_phid_lookup_Method.php',
'ConduitAPI_phid_query_Method' => 'applications/phid/conduit/ConduitAPI_phid_query_Method.php',
- 'ConduitAPI_phpast_Method' => 'applications/phpast/conduit/ConduitAPI_phpast_Method.php',
- 'ConduitAPI_phpast_getast_Method' => 'applications/phpast/conduit/ConduitAPI_phpast_getast_Method.php',
- 'ConduitAPI_phpast_version_Method' => 'applications/phpast/conduit/ConduitAPI_phpast_version_Method.php',
'ConduitAPI_phragment_Method' => 'applications/phragment/conduit/ConduitAPI_phragment_Method.php',
'ConduitAPI_phragment_getpatch_Method' => 'applications/phragment/conduit/ConduitAPI_phragment_getpatch_Method.php',
'ConduitAPI_phragment_queryfragments_Method' => 'applications/phragment/conduit/ConduitAPI_phragment_queryfragments_Method.php',
@@ -2746,9 +2743,6 @@
'ConduitAPI_phid_info_Method' => 'ConduitAPI_phid_Method',
'ConduitAPI_phid_lookup_Method' => 'ConduitAPI_phid_Method',
'ConduitAPI_phid_query_Method' => 'ConduitAPI_phid_Method',
- 'ConduitAPI_phpast_Method' => 'ConduitAPIMethod',
- 'ConduitAPI_phpast_getast_Method' => 'ConduitAPI_phpast_Method',
- 'ConduitAPI_phpast_version_Method' => 'ConduitAPI_phpast_Method',
'ConduitAPI_phragment_Method' => 'ConduitAPIMethod',
'ConduitAPI_phragment_getpatch_Method' => 'ConduitAPI_phragment_Method',
'ConduitAPI_phragment_queryfragments_Method' => 'ConduitAPI_phragment_Method',
diff --git a/src/applications/phpast/conduit/ConduitAPI_phpast_Method.php b/src/applications/phpast/conduit/ConduitAPI_phpast_Method.php
deleted file mode 100644
--- a/src/applications/phpast/conduit/ConduitAPI_phpast_Method.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-/**
- * @group conduit
- */
-abstract class ConduitAPI_phpast_Method extends ConduitAPIMethod {
-
- public function getApplication() {
- return PhabricatorApplication::getByClass(
- 'PhabricatorApplicationPHPAST');
- }
-
-}
diff --git a/src/applications/phpast/conduit/ConduitAPI_phpast_getast_Method.php b/src/applications/phpast/conduit/ConduitAPI_phpast_getast_Method.php
deleted file mode 100644
--- a/src/applications/phpast/conduit/ConduitAPI_phpast_getast_Method.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/**
- * @group conduit
- */
-final class ConduitAPI_phpast_getast_Method
- extends ConduitAPI_phpast_Method {
-
- public function getMethodDescription() {
- return "Parse a piece of PHP code.";
- }
-
- public function defineParamTypes() {
- return array(
- 'code' => 'required string',
- );
- }
-
- public function defineReturnType() {
- return 'nonempty dict';
- }
-
- public function defineErrorTypes() {
- return array(
- 'ERR-XHPAST-LEY' => 'xhpast got Rickrolled',
- );
- }
-
- protected function execute(ConduitAPIRequest $request) {
- $source = $request->getValue('code');
- $future = xhpast_get_parser_future($source);
- list($stdout) = $future->resolvex();
-
- return json_decode($stdout, true);
- }
-
-}
diff --git a/src/applications/phpast/conduit/ConduitAPI_phpast_version_Method.php b/src/applications/phpast/conduit/ConduitAPI_phpast_version_Method.php
deleted file mode 100644
--- a/src/applications/phpast/conduit/ConduitAPI_phpast_version_Method.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/**
- * @group conduit
- */
-final class ConduitAPI_phpast_version_Method
- extends ConduitAPI_phpast_Method {
-
- public function getMethodDescription() {
- return "Get server xhpast version.";
- }
-
- public function defineParamTypes() {
- return array();
- }
-
- public function defineReturnType() {
- return 'string';
- }
-
- public function defineErrorTypes() {
- return array(
- 'ERR-NOT-FOUND' => 'xhpast was not found on the server',
- 'ERR-COMMAND-FAILED' => 'xhpast died with a nonzero exit code',
- );
- }
-
- protected function execute(ConduitAPIRequest $request) {
- $path = xhpast_get_binary_path();
- if (!Filesystem::pathExists($path)) {
- throw new ConduitException('ERR-NOT-FOUND');
- }
- list($err, $stdout) = exec_manual('%s --version', $path);
- if ($err) {
- throw new ConduitException('ERR-COMMAND-FAILED');
- }
- return trim($stdout);
- }
-
-}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 4, 5:58 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309058
Default Alt Text
D8500.id20176.diff (4 KB)
Attached To
Mode
D8500: Remove `phpast.*` Conduit methods
Attached
Detach File
Event Timeline
Log In to Comment