Skip to content

Commit

Permalink
update for compatibility with symfony 5 #65
Browse files Browse the repository at this point in the history
add return values to commands
add symfony 5 instructions to readme
  • Loading branch information
BrandonFlude authored Nov 13, 2020
1 parent 8e90845 commit 6930c41
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Command/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$this->rabbitMqSupervisor->setWaitForSupervisord((bool) $input->getOption('wait-for-supervisord'));
$this->rabbitMqSupervisor->build();

return 0;
}
}
2 changes: 2 additions & 0 deletions Command/ControlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$input->getArgument('cmd')
));
}

return 0;
}
}
2 changes: 2 additions & 0 deletions Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->rabbitMqSupervisor->init();

return 0;
}
}
2 changes: 2 additions & 0 deletions Command/KillCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->rabbitMqSupervisor->kill($input->getArgument('signal'));

return 0;
}
}
2 changes: 2 additions & 0 deletions Command/RebuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$this->rabbitMqSupervisor->setWaitForSupervisord((bool) $input->getOption('wait-for-supervisord'));
$this->rabbitMqSupervisor->rebuild();

return 0;
}
}
2 changes: 2 additions & 0 deletions Command/RestartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$this->rabbitMqSupervisor->setWaitForSupervisord((bool) $input->getOption('wait-for-supervisord'));
$this->rabbitMqSupervisor->restart();

return 0;
}
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ public function registerBundles()
}
```

Symfony 5:

```php
// config/bundles.php
return [
...
Phobetor\RabbitMqSupervisorBundle\RabbitMqSupervisorBundle::class => ["all" => true],
...
];

```

## Zero Configuration

RabbitMQ supervisor bundle works out of the box with a predefined configuration. If you leave it this way you will end
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"supervisord",
"symfony2",
"symfony3",
"symfony4"
"symfony4",
"symfony5"
],
"homepage": "https://github.com/Phobetor/rabbitmq-supervisor-bundle",
"authors": [
Expand All @@ -20,9 +21,9 @@
}
],
"require": {
"symfony/framework-bundle": "~2.5|~3.0|~4.0",
"symfony/console": "~2.5|~3.0|~4.0",
"symfony/process": "~2.5|~3.0|~4.0"
"symfony/framework-bundle": "~2.5|~3.0|~4.0|~5.0",
"symfony/console": "~2.5|~3.0|~4.0|~5.0",
"symfony/process": "~2.5|~3.0|~4.0|~5.0"
},
"suggest": {
"php-amqplib/rabbitmq-bundle": "The rabbitmq bundle for symfony which this bundle takes the consumer information from",
Expand Down

0 comments on commit 6930c41

Please sign in to comment.