Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793376
PhabricatorAPIFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
721 B
Referenced Files
None
Subscribers
None
PhabricatorAPIFactory.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment