File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/aphront/configuration Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
}
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ final public function buildController() {
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
You can’t perform that action at this time.
0 commit comments