Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102508573
PhabricatorFilesManagementEnginesWorkflow.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
Fri, Feb 21, 11:12
Size
663 B
Mime Type
text/x-php
Expires
Sun, Feb 23, 11:12 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24311735
Attached To
rPH Phabricator
PhabricatorFilesManagementEnginesWorkflow.php
View Options
<?php
final
class
PhabricatorFilesManagementEnginesWorkflow
extends
PhabricatorFilesManagementWorkflow
{
public
function
didConstruct
()
{
$this
->
setName
(
'engines'
)
->
setSynopsis
(
'List available storage engines.'
)
->
setArguments
(
array
());
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
();
$engines
=
PhabricatorFile
::
buildAllEngines
();
if
(!
$engines
)
{
throw
new
Exception
(
'No storage engines are available.'
);
}
foreach
(
$engines
as
$engine
)
{
$console
->
writeOut
(
"%s
\n
"
,
$engine
->
getEngineIdentifier
());
}
return
0
;
}
}
Event Timeline
Log In to Comment