Skip to content

Commit a590b92

Browse files
committed
update supported console version
- drop kdyby console specific dependency and replaced with core symfony dependency (for dev) you are free to choose console integration on your project (hopefully :) )
1 parent 33af82e commit a590b92

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Kdyby/RabbitMq/Command/AnonConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
use Symfony\Component\Console\Input\InputInterface;
99
use Symfony\Component\Console\Output\OutputInterface;
1010

11+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'rabbitmq:anon-consumer')]
1112
class AnonConsumerCommand extends \Kdyby\RabbitMq\Command\BaseConsumerCommand
1213
{
1314

1415
protected function configure(): void
1516
{
1617
parent::configure();
1718

18-
$this->setName('rabbitmq:anon-consumer');
1919
$this->setDescription('Starts an anonymouse configured consumer');
2020

2121
$this->getDefinition()->getOption('messages')->setDefault(1);

src/Kdyby/RabbitMq/Command/ConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
namespace Kdyby\RabbitMq\Command;
66

7+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'rabbitmq:consumer')]
78
class ConsumerCommand extends \Kdyby\RabbitMq\Command\BaseConsumerCommand
89
{
910

1011
protected function configure(): void
1112
{
1213
parent::configure();
1314

14-
$this->setName('rabbitmq:consumer');
1515
$this->setDescription('Starts a configured consumer');
1616
}
1717

src/Kdyby/RabbitMq/Command/PurgeConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'rabbitmq:purge')]
1213
class PurgeConsumerCommand extends \Symfony\Component\Console\Command\Command
1314
{
1415

@@ -21,7 +22,6 @@ class PurgeConsumerCommand extends \Symfony\Component\Console\Command\Command
2122
protected function configure(): void
2223
{
2324
$this
24-
->setName('rabbitmq:purge')
2525
->setDescription('Purges all messages in queue associated with given consumer')
2626
->addArgument('name', InputArgument::REQUIRED, 'Consumer Name')
2727
->addOption('no-confirmation', NULL, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging');

src/Kdyby/RabbitMq/Command/RpcServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'rabbitmq:rpc-server')]
1213
class RpcServerCommand extends \Symfony\Component\Console\Command\Command
1314
{
1415

@@ -21,7 +22,6 @@ class RpcServerCommand extends \Symfony\Component\Console\Command\Command
2122
protected function configure(): void
2223
{
2324
$this
24-
->setName('rabbitmq:rpc-server')
2525
->setDescription('Starts a configured RPC server')
2626
->addArgument('name', InputArgument::REQUIRED, 'Server Name')
2727
->addOption('messages', 'm', InputOption::VALUE_OPTIONAL, 'Messages to consume', 0)

src/Kdyby/RabbitMq/Command/SetupFabricCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'rabbitmq:setup-fabric')]
1213
class SetupFabricCommand extends \Symfony\Component\Console\Command\Command
1314
{
1415

@@ -21,7 +22,6 @@ class SetupFabricCommand extends \Symfony\Component\Console\Command\Command
2122
protected function configure(): void
2223
{
2324
$this
24-
->setName('rabbitmq:setup-fabric')
2525
->setDescription('Sets up the Rabbit MQ fabric')
2626
->addOption('debug', 'd', InputOption::VALUE_NONE, 'Enable Debugging');
2727
}

src/Kdyby/RabbitMq/Command/StdInProducerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'rabbitmq:stdin-producer')]
1213
class StdInProducerCommand extends \Symfony\Component\Console\Command\Command
1314
{
1415

@@ -21,7 +22,6 @@ class StdInProducerCommand extends \Symfony\Component\Console\Command\Command
2122
protected function configure(): void
2223
{
2324
$this
24-
->setName('rabbitmq:stdin-producer')
2525
->setDescription('Creates message from given STDIN and passes it to configured producer')
2626
->addArgument('name', InputArgument::REQUIRED, 'Producer Name')
2727
->addOption('debug', 'd', InputOption::VALUE_OPTIONAL, 'Enable Debugging', FALSE);

0 commit comments

Comments
 (0)