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())
18 ->setHighlights($highlights)
19 ->setURI(new PhutilURI($paste->getURI()));