Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phame / site / Phame404Response.php
blobf511a0f9d9a544ffc0e35fe7c41b6662685869ea
1 <?php
3 final class Phame404Response extends AphrontHTMLResponse {
5 private $page;
7 public function setPage(AphrontPageView $page) {
8 $this->page = $page;
9 return $this;
12 public function getPage() {
13 return $this->page;
16 public function getHTTPResponseCode() {
17 return 404;
20 public function buildResponseString() {
21 require_celerity_resource('phame-css');
23 $not_found = phutil_tag(
24 'div',
25 array(
26 'class' => 'phame-404',
28 array(
29 phutil_tag('strong', array(), pht('404 Not Found')),
30 phutil_tag('br'),
31 pht('Wherever you go, there you are.'),
32 phutil_tag('br'),
33 pht('But the page you seek is elsewhere.'),
34 ));
36 $page = $this->getPage()
37 ->setTitle(pht('404 Not Found'))
38 ->appendChild($not_found);
40 return $page->render();