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

Remove AphrontRedirectException

Summary: Fixes T3909. Waiting on Facebook to confirm this is unused.

Test Plan: `grep`

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3909

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

-23
-2
src/__phutil_library_map__.php
··· 74 74 'AphrontPlainTextResponse' => 'aphront/response/AphrontPlainTextResponse.php', 75 75 'AphrontProgressBarView' => 'view/widget/bars/AphrontProgressBarView.php', 76 76 'AphrontProxyResponse' => 'aphront/response/AphrontProxyResponse.php', 77 - 'AphrontRedirectException' => 'aphront/exception/AphrontRedirectException.php', 78 77 'AphrontRedirectResponse' => 'aphront/response/AphrontRedirectResponse.php', 79 78 'AphrontReloadResponse' => 'aphront/response/AphrontReloadResponse.php', 80 79 'AphrontRequest' => 'aphront/AphrontRequest.php', ··· 2180 2179 'AphrontPlainTextResponse' => 'AphrontResponse', 2181 2180 'AphrontProgressBarView' => 'AphrontBarView', 2182 2181 'AphrontProxyResponse' => 'AphrontResponse', 2183 - 'AphrontRedirectException' => 'AphrontException', 2184 2182 'AphrontRedirectResponse' => 'AphrontResponse', 2185 2183 'AphrontReloadResponse' => 'AphrontRedirectResponse', 2186 2184 'AphrontRequestFailureView' => 'AphrontView',
-18
src/aphront/exception/AphrontRedirectException.php
··· 1 - <?php 2 - 3 - /** 4 - * TODO: Remove this entirely? We have no callsites. 5 - */ 6 - final class AphrontRedirectException extends AphrontException { 7 - 8 - private $uri; 9 - 10 - public function __construct($uri) { 11 - $this->uri = $uri; 12 - } 13 - 14 - public function getURI() { 15 - return $this->uri; 16 - } 17 - 18 - }
-3
webroot/index.php
··· 83 83 $controller->willProcessRequest($uri_data); 84 84 $response = $controller->processRequest(); 85 85 } 86 - } catch (AphrontRedirectException $ex) { 87 - $response = id(new AphrontRedirectResponse()) 88 - ->setURI($ex->getURI()); 89 86 } catch (Exception $ex) { 90 87 $original_exception = $ex; 91 88 $response = $application->handleException($ex);