diff options
author | Vitor Mattos <vitor@php.rio> | 2021-11-14 04:22:57 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2021-11-24 01:11:47 +0300 |
commit | af8a81a841ac95b9c2c56dbb7a17cfd4289f5009 (patch) | |
tree | 68bae46ed644cd80b626e57eb7f0de0b6386951b | |
parent | 4a62f36c400ea2d96f95b178fa65ea81a62ba4b4 (diff) |
Make compatible with old versions of Nextcloud server
Signed-off-by: Vitor Mattos <vitor@php.rio>
-rw-r--r-- | lib/Command/Configure.php | 8 | ||||
-rw-r--r-- | lib/Command/Status.php | 2 | ||||
-rw-r--r-- | lib/Command/Test.php | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/Command/Configure.php b/lib/Command/Configure.php index 4aaa226..b3a9e16 100644 --- a/lib/Command/Configure.php +++ b/lib/Command/Configure.php @@ -82,13 +82,13 @@ class Configure extends Command { switch ($gatewayName) { case 'signal': $this->configureSignal($input, $output); - break; + return 0; case 'sms': $this->configureSms($input, $output); - break; + return 0; case 'telegram': $this->configureTelegram($input, $output); - break; + return 0; default: $output->writeln("<error>Invalid gateway $gatewayName</error>"); return; @@ -340,7 +340,7 @@ class Configure extends Command { $output->writeln("Invalid provider $provider"); break; } - return self::SUCCESS; + return 0; } private function configureTelegram(InputInterface $input, OutputInterface $output) { diff --git a/lib/Command/Status.php b/lib/Command/Status.php index f37296f..a743228 100644 --- a/lib/Command/Status.php +++ b/lib/Command/Status.php @@ -57,6 +57,6 @@ class Status extends Command { $output->writeln('SMS gateway: ' . ($smsConfigured ? 'configured' : 'not configured')); $telegramConfigured = $this->telegramGateway->getConfig()->isComplete(); $output->writeln('Telegram gateway: ' . ($telegramConfigured ? 'configured' : 'not configured')); - return self::SUCCESS; + return 0; } } diff --git a/lib/Command/Test.php b/lib/Command/Test.php index dc6749f..418a56b 100644 --- a/lib/Command/Test.php +++ b/lib/Command/Test.php @@ -102,6 +102,6 @@ class Test extends Command { } $gateway->send($user, $identifier, 'Test'); - return self::SUCCESS; + return 0; } } |