Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / files / controller / PhabricatorFileListController.php
blob4ee99ab46d7e058f662b000ddcf451209fcadff0
1 <?php
3 final class PhabricatorFileListController extends PhabricatorFileController {
5 public function shouldAllowPublic() {
6 return true;
9 public function isGlobalDragAndDropUploadEnabled() {
10 return true;
13 public function handleRequest(AphrontRequest $request) {
14 return id(new PhabricatorFileSearchEngine())
15 ->setController($this)
16 ->buildResponse();
19 protected function buildApplicationCrumbs() {
20 $crumbs = parent::buildApplicationCrumbs();
22 $crumbs->addAction(
23 id(new PHUIListItemView())
24 ->setName(pht('Upload File'))
25 ->setIcon('fa-upload')
26 ->setHref($this->getApplicationURI('/upload/')));
28 return $crumbs;