Create script printing controller name based on URL
Summary:
With this script, I am able to add bookmarklet to my browser which edits the
controller responsible for displaying current page by a single click.
Plus it can be useful also for other uses.
Test Plan:
./aphrontpath.php / ./aphrontpath.php D123 ./aphrontpath.php /D123 ./aphrontpath.php /D123/ # doesn't exist ./aphrontpath.php https://secure.phabricator.com/D123 ./aphrontpath.php https://secure.phabricator.com/D123?x=2 ./aphrontpath.php https://secure.phabricator.com/D123#comment-1 ./aphrontpath.php differential ./aphrontpath.php /differential/ ./aphrontpath.php /w/ # rewritten by custom config
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, epriestley
Maniphest Tasks: T349
Differential Revision: https://secure.phabricator.com/D1746