Skip to content

Commit

Permalink
Constants are from version 4.4, we support lower versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanPala committed Aug 20, 2021
1 parent c917f87 commit 2bf8233
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Kdyby/RabbitMq/Command/BaseConsumerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
2 changes: 1 addition & 1 deletion src/Kdyby/RabbitMq/Command/RpcServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
2 changes: 1 addition & 1 deletion src/Kdyby/RabbitMq/Command/SetupFabricCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
}

return \Symfony\Component\Console\Command\Command::SUCCESS;
return 0;
}

}
2 changes: 1 addition & 1 deletion src/Kdyby/RabbitMq/Command/StdInProducerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

0 comments on commit 2bf8233

Please sign in to comment.