@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhorgePHPASTViewFrameController
4 extends PhabricatorXHPASTViewController {
5
6 public function shouldAllowPublic() {
7 return true;
8 }
9
10 public function handleRequest(AphrontRequest $request) {
11 $id = $request->getURIData('id');
12
13 return $this->newPage()
14 ->setApplicationName('PHPASTView')
15 ->setBaseURI('/phpast/')
16 ->setTitle(pht('PHPAST View'))
17 ->setGlyph("\xE2\x96\xA0")
18 ->appendChild(phutil_tag(
19 'iframe',
20 array(
21 'src' => "/phpast/frameset/{$id}/",
22 'frameborder' => '0',
23 'style' => 'width: 100%; height: 800px;',
24 '',
25 )));
26 }
27}