From 2bf82333e43ab85a4929475834da64bc169cdda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A1la?= Date: Fri, 20 Aug 2021 14:07:45 +0200 Subject: [PATCH] Constants are from version 4.4, we support lower versions --- src/Kdyby/RabbitMq/Command/BaseConsumerCommand.php | 2 +- src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php | 2 +- src/Kdyby/RabbitMq/Command/RpcServerCommand.php | 2 +- src/Kdyby/RabbitMq/Command/SetupFabricCommand.php | 2 +- src/Kdyby/RabbitMq/Command/StdInProducerCommand.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Kdyby/RabbitMq/Command/BaseConsumerCommand.php b/src/Kdyby/RabbitMq/Command/BaseConsumerCommand.php index 051c45c4..f87d2f31 100644 --- a/src/Kdyby/RabbitMq/Command/BaseConsumerCommand.php +++ b/src/Kdyby/RabbitMq/Command/BaseConsumerCommand.php @@ -88,7 +88,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $this->consumer->consume($this->amount); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return 0; } /** diff --git a/src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php b/src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php index a31ccbbb..06a164df 100644 --- a/src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php +++ b/src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php @@ -44,7 +44,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $consumer = $this->connection->getConsumer($input->getArgument('name')); $consumer->purge(); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return 0; } } diff --git a/src/Kdyby/RabbitMq/Command/RpcServerCommand.php b/src/Kdyby/RabbitMq/Command/RpcServerCommand.php index 7140d444..1fba43a4 100644 --- a/src/Kdyby/RabbitMq/Command/RpcServerCommand.php +++ b/src/Kdyby/RabbitMq/Command/RpcServerCommand.php @@ -46,7 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $rpcServer = $this->connection->getRpcServer($input->getArgument('name')); $rpcServer->start($amount); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return 0; } } diff --git a/src/Kdyby/RabbitMq/Command/SetupFabricCommand.php b/src/Kdyby/RabbitMq/Command/SetupFabricCommand.php index 9f267241..54cf10ff 100644 --- a/src/Kdyby/RabbitMq/Command/SetupFabricCommand.php +++ b/src/Kdyby/RabbitMq/Command/SetupFabricCommand.php @@ -47,7 +47,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } } - return \Symfony\Component\Console\Command\Command::SUCCESS; + return 0; } } diff --git a/src/Kdyby/RabbitMq/Command/StdInProducerCommand.php b/src/Kdyby/RabbitMq/Command/StdInProducerCommand.php index 8e87c359..a9419e2e 100644 --- a/src/Kdyby/RabbitMq/Command/StdInProducerCommand.php +++ b/src/Kdyby/RabbitMq/Command/StdInProducerCommand.php @@ -43,7 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $producer->publish(\serialize($data)); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return 0; } }