Something went wrong. Try again.
@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
Something went wrong. Try again.
123456789101112131415161718192021222324252627#!/usr/bin/env php<?php
$root = dirname(dirname(dirname(__FILE__)));require_once $root.'/scripts/__init_script__.php';
if ($argc !== 2 || $argv[1] === '--help') { echo "Usage: aphrontpath.php <url>\n"; echo "Purpose: Print controller which will process passed <url>.\n"; exit(1);}
$url = parse_url($argv[1]);$path = '/'.(isset($url['path']) ? ltrim($url['path'], '/') : '');
$config_key = 'aphront.default-application-configuration-class';$application = PhabricatorEnv::newObjectFromConfig($config_key);$application->setRequest(new AphrontRequest('', $path));
list($controller) = $application->buildControllerForPath($path);if (!$controller && substr($path, -1) !== '/') { list($controller) = $application->buildControllerForPath($path.'/');}if ($controller) { echo get_class($controller) . "\n";}