Homec4science

Allow libphutil libraries to load arbitrary runtime code from extensions/

Authored by epriestley <git@epriestley.com> on Apr 19 2013, 21:32.

Description

Allow libphutil libraries to load arbitrary runtime code from extensions/

Summary:
Currently, users need to build a libphutil library in order to add runtime code to Phabricator. While desirable for larger applications, this is fairly complex and offputting, and users have a relatively low success rate with it.

Instead, make libphutil recognize an extensions/ directory and load arbitrary code from it at runtime, so that installs can drop code into this directory without needing to build a library.

(The tricky part here is that we update the class map so that PhutilSymbolLoader can select these classes correctly.)

Ref T2971.

Test Plan: Unit tests.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran, AnhNhan

Maniphest Tasks: T2971

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

Details

Committed
epriestley <git@epriestley.com>Apr 19 2013, 21:32
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU80d610d7e2d5: use parse_url() for URI parsing
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUe00da44c68e8: Allow libphutil libraries to load arbitrary runtime code from extensions/ (authored by epriestley <git@epriestley.com>).Apr 19 2013, 21:32