Пример #1
0
 /**
  * Get an omnipotent user object for use in contexts where there is no acting
  * user, notably daemons.
  *
  * @return PhabricatorUser An omnipotent user.
  */
 public static function getOmnipotentUser()
 {
     static $user = null;
     if (!$user) {
         $user = new PhabricatorUser();
         $user->omnipotent = true;
         $user->makeEphemeral();
     }
     return $user;
 }