Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96209513
DiffusionResolveRefsConduitAPIMethod.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
Mon, Dec 23, 19:26
Size
802 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 19:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23130635
Attached To
rPH Phabricator
DiffusionResolveRefsConduitAPIMethod.php
View Options
<?php
final
class
DiffusionResolveRefsConduitAPIMethod
extends
DiffusionQueryConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'differential.resolverefsquery'
;
}
public
function
getMethodDescription
()
{
return
pht
(
'Resolve references into stable, canonical identifiers.'
);
}
public
function
defineReturnType
()
{
return
'dict<string, list<dict<string, wild>>>'
;
}
protected
function
defineCustomParamTypes
()
{
return
array
(
'refs'
=>
'required list<string>'
,
);
}
protected
function
getResult
(
ConduitAPIRequest
$request
)
{
$refs
=
$request
->
getValue
(
'refs'
);
return
id
(
new
DiffusionLowLevelResolveRefsQuery
())
->
setRepository
(
$this
->
getDiffusionRequest
()->
getRepository
())
->
withRefs
(
$refs
)
->
execute
();
}
}
Event Timeline
Log In to Comment