-
Notifications
You must be signed in to change notification settings - Fork 435
Expand file tree
/
Copy pathSetupBrokerExtensionCommand.php
More file actions
42 lines (33 loc) · 1.02 KB
/
SetupBrokerExtensionCommand.php
File metadata and controls
42 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace Enqueue\Tests\Symfony\Client\Mock;
use Enqueue\Client\Config;
use Enqueue\Client\Driver\GenericDriver;
use Enqueue\Client\RouteCollection;
use Enqueue\NoEffect\NullContext;
use Enqueue\Symfony\Client\SetupBrokerExtensionCommandTrait;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class SetupBrokerExtensionCommand extends Command
{
use SetupBrokerExtensionCommandTrait;
protected $extension;
public function getExtension()
{
return $this->extension;
}
protected function configure()
{
parent::configure();
$this->configureSetupBrokerExtension();
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->extension = $this->getSetupBrokerExtension($input, new GenericDriver(
new NullContext(),
Config::create(),
new RouteCollection([])
));
return 0;
}
}