Homec4science

Simplify the use of `phutil_get_library_root`

Authored by Joshua Spence <josh@joshuaspence.com> on Jan 15 2015, 12:26.

Description

Simplify the use of phutil_get_library_root

Summary:
Currently, in order to retrieve the library root of the current phutil module, the following code is required:

$library = phutil_get_current_library_name();
$root = phutil_get_library_root($library);

This can be simplified by allowing the use of phutil_get_library_root() (without any arguments) to mean "get the library root for the current module".

Test Plan: N/A

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

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

Details

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHU67a17d0efb02: Simplify the use of `phutil_get_library_root` (authored by Joshua Spence <josh@joshuaspence.com>).Jan 15 2015, 12:30