Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14119391
D11514.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11514.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
@@ -2619,6 +2619,7 @@
'PhabricatorWorkingCopyDiscoveryTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyDiscoveryTestCase.php',
'PhabricatorWorkingCopyPullTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyPullTestCase.php',
'PhabricatorWorkingCopyTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyTestCase.php',
+ 'PhabricatorXHPASTSetupCheck' => 'applications/phpast/check/PhabricatorXHPASTSetupCheck.php',
'PhabricatorXHPASTViewController' => 'applications/phpast/controller/PhabricatorXHPASTViewController.php',
'PhabricatorXHPASTViewDAO' => 'applications/phpast/storage/PhabricatorXHPASTViewDAO.php',
'PhabricatorXHPASTViewFrameController' => 'applications/phpast/controller/PhabricatorXHPASTViewFrameController.php',
@@ -5927,6 +5928,7 @@
'PhabricatorWorkingCopyDiscoveryTestCase' => 'PhabricatorWorkingCopyTestCase',
'PhabricatorWorkingCopyPullTestCase' => 'PhabricatorWorkingCopyTestCase',
'PhabricatorWorkingCopyTestCase' => 'PhabricatorTestCase',
+ 'PhabricatorXHPASTSetupCheck' => 'PhabricatorSetupCheck',
'PhabricatorXHPASTViewController' => 'PhabricatorController',
'PhabricatorXHPASTViewDAO' => 'PhabricatorLiskDAO',
'PhabricatorXHPASTViewFrameController' => 'PhabricatorXHPASTViewController',
diff --git a/src/applications/phpast/check/PhabricatorXHPASTSetupCheck.php b/src/applications/phpast/check/PhabricatorXHPASTSetupCheck.php
new file mode 100644
--- /dev/null
+++ b/src/applications/phpast/check/PhabricatorXHPASTSetupCheck.php
@@ -0,0 +1,22 @@
+<?php
+
+final class PhabricatorXHPASTSetupCheck extends PhabricatorSetupCheck {
+
+ protected function executeChecks() {
+ if (!Filesystem::pathExists(PhutilXHPASTBinary::getPath())) {
+ $this->newIssue('xhpast.binary')
+ ->setName(pht('Missing XHPAST Binary'))
+ ->setMessage(pht('The XHPAST binary does not exist.'))
+ ->addCommand(PhutilXHPASTBinary::getBuildInstructions());
+ return;
+ }
+
+ if (!PhutilXHPASTBinary::isAvailable()) {
+ $this->newIssue('xhpast.version')
+ ->setName(pht('Out-of-Date XHPAST Binary'))
+ ->setMessage(pht('The XHPAST binary is not up-to-date.'))
+ ->addCommand(PhutilXHPASTBinary::getBuildInstructions());
+ }
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 5:02 AM (11 h, 18 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6807838
Default Alt Text
D11514.diff (2 KB)
Attached To
Mode
D11514: Add a setup check for the XHPAST binary
Attached
Detach File
Event Timeline
Log In to Comment