Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / files / management / PhabricatorFilesManagementEnginesWorkflow.php
blobede95a1f28c033e9b429bed15c5cc8e83de5e369
1 <?php
3 final class PhabricatorFilesManagementEnginesWorkflow
4 extends PhabricatorFilesManagementWorkflow {
6 protected function didConstruct() {
7 $this
8 ->setName('engines')
9 ->setSynopsis(pht('List available storage engines.'))
10 ->setArguments(array());
13 public function execute(PhutilArgumentParser $args) {
14 $console = PhutilConsole::getConsole();
16 $engines = PhabricatorFile::buildAllEngines();
17 if (!$engines) {
18 throw new Exception(pht('No storage engines are available.'));
21 foreach ($engines as $engine) {
22 $console->writeOut(
23 "%s\n",
24 $engine->getEngineIdentifier());
27 return 0;