Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111132008
ConduitAPI_diffusion_resolverefs_Method.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
Tue, Apr 29, 19:08
Size
728 B
Mime Type
text/x-php
Expires
Thu, May 1, 19:08 (2 d)
Engine
blob
Format
Raw Data
Handle
25816283
Attached To
rPH Phabricator
ConduitAPI_diffusion_resolverefs_Method.php
View Options
<?php
final
class
ConduitAPI_diffusion_resolverefs_Method
extends
ConduitAPI_diffusion_abstractquery_Method
{
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