Page MenuHomeDevCentral

PhabricatorAPIFactory.php
No OneTemporary

PhabricatorAPIFactory.php

<?php
namespace Nasqueron\Notifications\Phabricator;
use Nasqueron\Notifications\Contracts\APIFactory;
class PhabricatorAPIFactory implements APIFactory {
/**
* 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
Sun, Jul 27, 20:37 (6 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2780880
Default Alt Text
PhabricatorAPIFactory.php (796 B)

Event Timeline