Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112517587
ConduitGetCapabilitiesConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 11, 03:56
Size
1 KB
Mime Type
text/x-php
Expires
Tue, May 13, 03:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26066030
Attached To
rPH Phabricator
ConduitGetCapabilitiesConduitAPIMethod.php
View Options
<?php
final
class
ConduitGetCapabilitiesConduitAPIMethod
extends
ConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'conduit.getcapabilities'
;
}
public
function
shouldRequireAuthentication
()
{
return
false
;
}
public
function
getMethodDescription
()
{
return
pht
(
'List capabilities, wire formats, and authentication protocols '
.
'available on this server.'
);
}
protected
function
defineParamTypes
()
{
return
array
();
}
protected
function
defineReturnType
()
{
return
'dict<string, any>'
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$authentication
=
array
(
'token'
,
'asymmetric'
,
'session'
,
'sessionless'
,
);
$oauth_app
=
'PhabricatorOAuthServerApplication'
;
if
(
PhabricatorApplication
::
isClassInstalled
(
$oauth_app
))
{
$authentication
[]
=
'oauth'
;
}
return
array
(
'authentication'
=>
$authentication
,
'signatures'
=>
array
(
'consign'
,
),
'input'
=>
array
(
'json'
,
'urlencoded'
,
),
'output'
=>
array
(
'json'
,
'human'
,
),
);
}
}
Event Timeline
Log In to Comment