Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539510
PhabricatorFilesManagementEnginesWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
676 B
Referenced Files
None
Subscribers
None
PhabricatorFilesManagementEnginesWorkflow.php
View Options
<?php
final
class
PhabricatorFilesManagementEnginesWorkflow
extends
PhabricatorFilesManagementWorkflow
{
protected
function
didConstruct
()
{
$this
->
setName
(
'engines'
)
->
setSynopsis
(
pht
(
'List available storage engines.'
))
->
setArguments
(
array
());
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
();
$engines
=
PhabricatorFile
::
buildAllEngines
();
if
(!
$engines
)
{
throw
new
Exception
(
pht
(
'No storage engines are available.'
));
}
foreach
(
$engines
as
$engine
)
{
$console
->
writeOut
(
"%s
\n
"
,
$engine
->
getEngineIdentifier
());
}
return
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:12 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
102394
Default Alt Text
PhabricatorFilesManagementEnginesWorkflow.php (676 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment