mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 19:22:42 +01:00
22 lines
477 B
PHP
22 lines
477 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorAphlictManagementRestartWorkflow
|
||
|
extends PhabricatorAphlictManagementWorkflow {
|
||
|
|
||
|
public function didConstruct() {
|
||
|
$this
|
||
|
->setName('restart')
|
||
|
->setSynopsis(pht('Stop, then start the notifications server.'))
|
||
|
->setArguments(array());
|
||
|
}
|
||
|
|
||
|
public function execute(PhutilArgumentParser $args) {
|
||
|
$err = $this->executeStopCommand();
|
||
|
if ($err) {
|
||
|
return $err;
|
||
|
}
|
||
|
return $this->executeStartCommand();
|
||
|
}
|
||
|
|
||
|
}
|