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:34 (6 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2841567
Default Alt Text
PhabricatorAPIFactory.php (794 B)

Event Timeline