Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1132708
ConduitGetCapabilitiesConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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>'
;
}
public
function
getRequiredScope
()
{
return
self
::
SCOPE_ALWAYS
;
}
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'
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 1, 6:03 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
259287
Default Alt Text
ConduitGetCapabilitiesConduitAPIMethod.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment