@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 Meta for handleRequest

Summary: Updates Applications application for handleRequest

Test Plan: Install, Uninstall an application

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+9 -19
+7 -11
src/applications/meta/controller/PhabricatorApplicationUninstallController.php
··· 6 6 private $application; 7 7 private $action; 8 8 9 - public function willProcessRequest(array $data) { 10 - $this->application = $data['application']; 11 - $this->action = $data['action']; 12 - } 13 - 14 - public function processRequest() { 15 - $request = $this->getRequest(); 16 - $user = $request->getUser(); 9 + public function handleRequest(AphrontRequest $request) { 10 + $viewer = $request->getViewer(); 11 + $this->action = $request->getURIData('action'); 12 + $this->application = $request->getURIData('application'); 17 13 18 14 $selected = id(new PhabricatorApplicationQuery()) 19 - ->setViewer($user) 15 + ->setViewer($viewer) 20 16 ->withClasses(array($this->application)) 21 17 ->requireCapabilities( 22 18 array( ··· 35 31 'phabricator.show-prototypes'); 36 32 37 33 $dialog = id(new AphrontDialogView()) 38 - ->setUser($user) 34 + ->setUser($viewer) 39 35 ->addCancelButton($view_uri); 40 36 41 37 if ($selected->isPrototype() && !$prototypes_enabled) { ··· 118 114 } 119 115 120 116 PhabricatorConfigEditor::storeNewValue( 121 - $this->getRequest()->getUser(), 117 + $this->getViewer(), 122 118 $config_entry, 123 119 $list, 124 120 PhabricatorContentSource::newFromRequest($this->getRequest()));
+2 -8
src/applications/meta/controller/PhabricatorApplicationsListController.php
··· 3 3 final class PhabricatorApplicationsListController 4 4 extends PhabricatorApplicationsController { 5 5 6 - private $queryKey; 7 - 8 6 public function shouldAllowPublic() { 9 7 return true; 10 8 } 11 9 12 - public function willProcessRequest(array $data) { 13 - $this->queryKey = idx($data, 'queryKey'); 14 - } 15 - 16 - public function processRequest() { 10 + public function handleRequest(AphrontRequest $request) { 17 11 $controller = id(new PhabricatorApplicationSearchController()) 18 - ->setQueryKey($this->queryKey) 12 + ->setQueryKey($request->getURIData('queryKey')) 19 13 ->setSearchEngine(new PhabricatorAppSearchEngine()) 20 14 ->setNavigation($this->buildSideNavView()); 21 15