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

Support applications in aphrontpath.php

Test Plan:
$ ./aphrontpath.php /diffusion/

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

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

vrana b1b2afce 64472dd7

+6 -6
+5 -5
scripts/aphront/aphrontpath.php
··· 31 31 32 32 $config_key = 'aphront.default-application-configuration-class'; 33 33 $application = PhabricatorEnv::newObjectFromConfig($config_key); 34 - $mapper = new AphrontURIMapper($application->getURIMap()); 34 + $application->setRequest(new AphrontRequest('', $path)); 35 35 36 - list($controller) = $mapper->mapPath($path); 37 - if (!$controller && $path[strlen($path) - 1] !== '/') { 38 - list($controller) = $mapper->mapPath($path.'/'); 36 + list($controller) = $application->buildControllerForPath($path); 37 + if (!$controller && substr($path, -1) !== '/') { 38 + list($controller) = $application->buildControllerForPath($path.'/'); 39 39 } 40 40 if ($controller) { 41 - echo "$controller\n"; 41 + echo get_class($controller) . "\n"; 42 42 }
+1 -1
src/aphront/configuration/AphrontApplicationConfiguration.php
··· 149 149 * parameters. 150 150 * @task routing 151 151 */ 152 - private function buildControllerForPath($path) { 152 + final public function buildControllerForPath($path) { 153 153 $maps = array(); 154 154 $maps[] = array(null, $this->getURIMap()); 155 155