Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / paste / controller / PhabricatorPasteController.php
blobb196e03d8b30688d2923d64bdf22211dc8a72647
1 <?php
3 abstract class PhabricatorPasteController extends PhabricatorController {
5 public function buildApplicationMenu() {
6 return $this->newApplicationMenu()
7 ->setSearchEngine(new PhabricatorPasteSearchEngine());
10 public function buildSourceCodeView(
11 PhabricatorPaste $paste,
12 $highlights = array()) {
14 $lines = phutil_split_lines($paste->getContent());
16 return id(new PhabricatorSourceCodeView())
17 ->setLines($lines)
18 ->setHighlights($highlights)
19 ->setURI(new PhutilURI($paste->getURI()));