HomeDevCentral

PhabricatorAPI static constructors throw exceptions

Description

PhabricatorAPI static constructors throw exceptions

Summary:
PhabricatorAPI class offered a incoherent behavior for forInstance
and forProject methods.

This change standardizes the behavior to throw an exception on
failure in forInstance of forProject methods.

Test Plan: New unit tests

Reviewers: dereckson

Differential Revision: https://devcentral.nasqueron.org/D606

Details

Provenance
derecksonAuthored on Aug 11 2016, 02:20
Differential Revision
D606: PhabricatorAPI static constructors throw exceptions
Parents
rNOTIF123f184ddad5: API dependency injection for ProjectsMap
Branches
Unknown
Tags
Unknown