repository = $repository; } public function setCommit($commit) { $this->commit = $commit; return $this; } public function setPath($path) { $this->path = $path; return $this; } public function processRequest() { $file_query = DiffusionFileContentQuery::newFromRepository( $this->repository, $this->path, $this->commit); $file_content = $file_query->loadFileContent(); $corpus = phutil_render_tag( 'textarea', array( ), phutil_escape_html($file_content->getCorpus())); // TODO: blame, color, line numbers, highlighting, etc etc return $this->buildStandardPageResponse( $corpus, array( 'title' => 'Browse', )); } }