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 (string $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 PhabricatorAPI
*/
public function getForProject (string $project) {
return PhabricatorAPI::forProject($project);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 13, 08:50 (1 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4249837
Default Alt Text
PhabricatorAPIFactory.php (775 B)

Event Timeline