Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / config / check / PhabricatorZipSetupCheck.php
blobe440cd4c521371dfa2e2ece370ea5454bd6ba255
1 <?php
3 final class PhabricatorZipSetupCheck extends PhabricatorSetupCheck {
5 public function getDefaultGroup() {
6 return self::GROUP_OTHER;
9 protected function executeChecks() {
10 if (!extension_loaded('zip')) {
11 $message = pht(
12 'The PHP "zip" extension is not installed. This extension is '.
13 'required by certain data export operations, including exporting '.
14 'data to Excel.'.
15 "\n\n".
16 'To clear this setup issue, install the extension and restart your '.
17 'webserver.'.
18 "\n\n".
19 'You may safely ignore this issue if you do not plan to export '.
20 'data in Zip archives or Excel spreadsheets, or intend to install '.
21 'the extension later.');
23 $this->newIssue('extension.zip')
24 ->setName(pht('Missing "zip" Extension'))
25 ->setMessage($message)
26 ->addPHPExtension('zip');