Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/check/PhabricatorZipSetupCheck.php
12256 views
1
<?php
2
3
final class PhabricatorZipSetupCheck extends PhabricatorSetupCheck {
4
5
public function getDefaultGroup() {
6
return self::GROUP_OTHER;
7
}
8
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.');
22
23
$this->newIssue('extension.zip')
24
->setName(pht('Missing "zip" Extension'))
25
->setMessage($message)
26
->addPHPExtension('zip');
27
}
28
}
29
}
30
31