Page MenuHomeDevCentral

PhabricatorAPIFactory.php
No OneTemporary

PhabricatorAPIFactory.php

<?php
namespace Nasqueron\Notifications\Phabricator;
class PhabricatorAPIFactory {
/**
* Gets an instance of the Phabricator API client class
*
* @param string $instance The Phabricator instance
* @return Nasqueron\Notifications\Phabricator\PhabricatorAPI
*/
public function get ($instance) {
return PhabricatorAPI::forInstance($instance);
}
/**
* Gets an instance of the Phabricator API client class for a project
*
* @param string $project The Phabricator project name
* @return Nasqueron\Notifications\Phabricator\PhabricatorAPI
*/
public function getForProject ($project) {
return PhabricatorAPI::forProject($project);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2439909
Default Alt Text
PhabricatorAPIFactory.php (721 B)

Event Timeline