forked from odolbeau/rabbit-mq-admin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rabbit
executable file
·24 lines (20 loc) · 864 Bytes
/
rabbit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env php
<?php
(@include_once __DIR__.'/vendor/autoload.php') || @include_once __DIR__.'/../../autoload.php';
use Bab\RabbitMq\Command\VhostMappingCreateCommand;
use Bab\RabbitMq\Command\QueuePurgeCommand;
use Bab\RabbitMq\Command\VhostResetCommand;
use Bab\RabbitMq\Command\QueueRemoveCommand;
use Bab\RabbitMq\Command\MessageGetCommand;
use Bab\RabbitMq\Command\MessageMoveCommand;
use Bab\RabbitMq\Command\MessageSenderCommand;
use Symfony\Component\Console\Application;
$application = new Application();
$application->add(new VhostMappingCreateCommand());
$application->add(new MessageGetCommand());
$application->add(new MessageMoveCommand());
$application->add(new QueuePurgeCommand());
$application->add(new QueueRemoveCommand());
$application->add(new VhostResetCommand());
$application->add(new MessageSenderCommand());
$application->run();