Differential D15698 Diff 37842 src/applications/aphlict/management/PhabricatorAphlictManagementRestartWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/aphlict/management/PhabricatorAphlictManagementRestartWorkflow.php
<?php | <?php | ||||
final class PhabricatorAphlictManagementRestartWorkflow | final class PhabricatorAphlictManagementRestartWorkflow | ||||
extends PhabricatorAphlictManagementWorkflow { | extends PhabricatorAphlictManagementWorkflow { | ||||
protected function didConstruct() { | protected function didConstruct() { | ||||
parent::didConstruct(); | |||||
$this | $this | ||||
->setName('restart') | ->setName('restart') | ||||
->setSynopsis(pht('Stop, then start the notifications server.')); | ->setSynopsis(pht('Stop, then start the notification server.')) | ||||
->setArguments($this->getLaunchArguments()); | |||||
} | } | ||||
public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
parent::execute($args); | $this->parseLaunchArguments($args); | ||||
$err = $this->executeStopCommand(); | $err = $this->executeStopCommand(); | ||||
if ($err) { | if ($err) { | ||||
return $err; | return $err; | ||||
} | } | ||||
return $this->executeStartCommand(); | return $this->executeStartCommand(); | ||||
} | } | ||||
} | } |