HomePhabricator

Simplify the use of `phutil_get_library_root`

Authored by joshuaspence.

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

Committed
joshuaspenceJan 15 2015, 11:30 AM
Pushed
joshuaspenceJan 15 2015, 11:30 AM
Reviewer
Blessed Reviewers
Differential Revision
D11326: Simplify the use of `phutil_get_library_root`
Parents
rPHUd7e7df98d2ea: Add default ports to `PhutilURI`
Branches
Unknown
Tags
Unknown
Reverted By
rPHUa39e8ded1dbf: Revert "Simplify the use of `phutil_get_library_root`"