Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | protected function execute(InputInterface $input, OutputInterface $output) |
||
31 | { |
||
32 | /** @var WebhookRepository $repository */ |
||
33 | $repository = $this->getContainer()->get('webhook.repository'); |
||
34 | |||
35 | for ($i = 1; $i <= 10; $i++) { |
||
36 | $webhook = new Webhook('http://httpbin.org/status/500', 'body'); |
||
37 | $repository->save($webhook); |
||
38 | $this->getContainer()->get('amqp.producer')->publish($webhook); |
||
39 | } |
||
40 | } |
||
41 | } |