@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update XHPhast for handleRequest

Summary: Updates XHPhast

Test Plan: Ran a few queries

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13776

+11 -25
+2 -8
src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php
··· 3 3 final class PhabricatorXHPASTViewFrameController 4 4 extends PhabricatorXHPASTViewController { 5 5 6 - private $id; 7 - 8 6 public function shouldAllowPublic() { 9 7 return true; 10 8 } 11 9 12 - public function willProcessRequest(array $data) { 13 - $this->id = $data['id']; 14 - } 15 - 16 - public function processRequest() { 17 - $id = $this->id; 10 + public function handleRequest(AphrontRequest $request) { 11 + $id = $request->getURIData('id'); 18 12 19 13 return $this->buildStandardPageResponse( 20 14 phutil_tag(
+2 -8
src/applications/phpast/controller/PhabricatorXHPASTViewFramesetController.php
··· 3 3 final class PhabricatorXHPASTViewFramesetController 4 4 extends PhabricatorXHPASTViewController { 5 5 6 - private $id; 7 - 8 6 public function shouldAllowPublic() { 9 7 return true; 10 8 } 11 9 12 - public function willProcessRequest(array $data) { 13 - $this->id = $data['id']; 14 - } 15 - 16 - public function processRequest() { 17 - $id = $this->id; 10 + public function handleRequest(AphrontRequest $request) { 11 + $id = $request->getURIData('id'); 18 12 19 13 $response = new AphrontWebpageResponse(); 20 14 $response->setFrameable(true);
+1 -1
src/applications/phpast/controller/PhabricatorXHPASTViewInputController.php
··· 3 3 final class PhabricatorXHPASTViewInputController 4 4 extends PhabricatorXHPASTViewPanelController { 5 5 6 - public function processRequest() { 6 + public function handleRequest(AphrontRequest $request) { 7 7 $input = $this->getStorageTree()->getInput(); 8 8 return $this->buildXHPASTViewPanelResponse($input); 9 9 }
+4 -6
src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php
··· 3 3 final class PhabricatorXHPASTViewRunController 4 4 extends PhabricatorXHPASTViewController { 5 5 6 - public function processRequest() { 7 - 8 - $request = $this->getRequest(); 9 - $user = $request->getUser(); 6 + public function handleRequest(AphrontRequest $request) { 7 + $viewer = $this->getViewer(); 10 8 11 9 if ($request->isFormPost()) { 12 10 $source = $request->getStr('source'); ··· 24 22 $storage_tree = new PhabricatorXHPASTViewParseTree(); 25 23 $storage_tree->setInput($source); 26 24 $storage_tree->setStdout($stdout); 27 - $storage_tree->setAuthorPHID($user->getPHID()); 25 + $storage_tree->setAuthorPHID($viewer->getPHID()); 28 26 $storage_tree->save(); 29 27 30 28 return id(new AphrontRedirectResponse()) ··· 32 30 } 33 31 34 32 $form = id(new AphrontFormView()) 35 - ->setUser($user) 33 + ->setUser($viewer) 36 34 ->appendChild( 37 35 id(new AphrontFormTextAreaControl()) 38 36 ->setLabel(pht('Source'))
+1 -1
src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php
··· 3 3 final class PhabricatorXHPASTViewStreamController 4 4 extends PhabricatorXHPASTViewPanelController { 5 5 6 - public function processRequest() { 6 + public function handleRequest(AphrontRequest $request) { 7 7 $storage = $this->getStorageTree(); 8 8 $input = $storage->getInput(); 9 9 $stdout = $storage->getStdout();
+1 -1
src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php
··· 7 7 return true; 8 8 } 9 9 10 - public function processRequest() { 10 + public function handleRequest(AphrontRequest $request) { 11 11 $storage = $this->getStorageTree(); 12 12 $input = $storage->getInput(); 13 13 $stdout = $storage->getStdout();