Page MenuHomestyx hydra

PhabricatorFileShortcutController.php
No OneTemporary

PhabricatorFileShortcutController.php

<?php
final class PhabricatorFileShortcutController
extends PhabricatorFileController {
private $id;
public function willProcessRequest(array $data) {
$this->id = $data['id'];
}
public function processRequest() {
$file = id(new PhabricatorFile())->load($this->id);
if (!$file) {
return new Aphront404Response();
}
return id(new AphrontRedirectResponse())->setURI($file->getBestURI());
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 26, 10:05 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1548534
Default Alt Text
PhabricatorFileShortcutController.php (432 B)

Event Timeline