1 | <?php |
||
15 | class WorkerRunnerManager extends BaseRunnerManager |
||
16 | { |
||
17 | /** |
||
18 | * Worker runner services configuration. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | private $runnerServices = array(); |
||
23 | |||
24 | /** |
||
25 | * Container. |
||
26 | * |
||
27 | * @var ContainerInterface |
||
28 | */ |
||
29 | private $container; |
||
30 | |||
31 | 5 | public function __construct(ContainerInterface $container) |
|
35 | |||
36 | /** |
||
37 | * Register runner service. |
||
38 | * |
||
39 | * @param string $name Worker name. |
||
40 | * @param string $id Service ID. |
||
41 | * @param array $options Worker options. |
||
42 | * @throws InvalidArgumentException Thrown, when there is no worker runner service registered in container. |
||
43 | */ |
||
44 | 3 | public function addRunnerService($name, $id, array $options = array()) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 3 | public function has($name) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 2 | public function run($name, OutputInterface $output = null) |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 1 | public function getRunners() |
|
88 | |||
89 | } |
||
90 |