Skip to content

Commit 1b8288f

Browse files
authored
Merge pull request #650 from Eloar/644_fix
purge command initialization fix
2 parents 4b66170 + dfba37b commit 1b8288f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Command/PurgeConsumerCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ protected function configure()
2222
$this->setName('rabbitmq:purge');
2323
}
2424

25+
protected function initialize(InputInterface $input, OutputInterface $output)
26+
{
27+
// nothing to initialize here as BaseConsumerCommand initializes on option that is not available here
28+
}
29+
2530
/**
2631
* @param InputInterface $input
2732
* @param OutputInterface $output

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
}],
1010
"require": {
1111
"php": "^7.1|^8.0",
12+
"ext-pcntl": "*",
1213

1314
"symfony/dependency-injection": "^4.3|^5.0",
1415
"symfony/event-dispatcher": "^4.3|^5.0",
@@ -17,14 +18,14 @@
1718
"symfony/console": "^4.3|^5.0",
1819
"php-amqplib/php-amqplib": "^2.12.2|^3.0",
1920
"psr/log": "^1.0",
20-
"symfony/http-kernel": "^4.4|^5.0",
21-
"symfony/framework-bundle": "^4.4|^5.0"
21+
"symfony/http-kernel": "^4.4|^5.0",
22+
"symfony/framework-bundle": "^4.4|^5.0"
2223
},
2324
"require-dev": {
2425
"symfony/serializer": "^4.3|^5.0",
2526
"phpunit/phpunit": "^7.5|^8.5",
2627
"phpstan/phpstan": "^0.12.11",
27-
"phpstan/phpstan-phpunit": "^0.12.6"
28+
"phpstan/phpstan-phpunit": "^0.12.6"
2829
},
2930
"replace": {
3031
"oldsound/rabbitmq-bundle": "self.version",

0 commit comments

Comments
 (0)