Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98225355
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
Sat, Jan 11, 05:49
Size
663 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 05:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23535832
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