That doesn’t sound right. If it is being generated at runtime I should be able call the method.
For instance changing the
PhabricatorUser::getPolicy method to print out an error log of
getIsAdmin or one of the already used faked methods like
getIsSystemAgent will throw an undeclared property exception. An example of this with code used is seen below.
Traceback when adding the below line to
PhabricatorUser::getPolicy and navigating to
phlog("User is System Agent: $this->getIsSystemAgent()");
I’ve already read the contribution guide, but it’s not obvious where to look to understand how it works. Reading LiskDAO or Database Schema did not help. Any guidance appreciated.