@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 PhorgePHPASTViewFramesetController
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 id(new AphrontWebpageResponse())
14 ->setFrameable(true)
15 ->setContent(phutil_tag(
16 'frameset',
17 array('cols' => '33%, 34%, 33%'),
18 array(
19 phutil_tag('frame', array('src' => "/phpast/input/{$id}/")),
20 phutil_tag('frame', array('src' => "/phpast/tree/{$id}/")),
21 phutil_tag('frame', array('src' => "/phpast/stream/{$id}/")),
22 )));
23 }
24}