4 * Callback provider for loading @{class@arcanist:ArcanistBundle} file data
5 * stored in the Files application.
7 final class PhabricatorFileBundleLoader
extends Phobject
{
11 public function setViewer(PhabricatorUser
$viewer) {
12 $this->viewer
= $viewer;
16 public function loadFileData($phid) {
17 $file = id(new PhabricatorFileQuery())
18 ->setViewer($this->viewer
)
19 ->withPHIDs(array($phid))
24 return $file->loadFileData();