@@ -22,6 +22,9 @@ |
||
22 | 22 | ]; |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $dir |
|
27 | + */ |
|
25 | 28 | public function defineCacheDir($dir) |
26 | 29 | { |
27 | 30 | $this->cacheDir = $dir; |
@@ -46,16 +46,26 @@ |
||
46 | 46 | ); |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $namespace |
|
51 | + * @param string $config |
|
52 | + */ |
|
49 | 53 | protected function givenConfig($namespace, $config) |
50 | 54 | { |
51 | 55 | static::$kernel->loadConfig($namespace, Yaml::parse((string) $config)); |
52 | 56 | } |
53 | 57 | |
58 | + /** |
|
59 | + * @param string $serviceId |
|
60 | + */ |
|
54 | 61 | protected function registerService($serviceId, $className, array $tags) |
55 | 62 | { |
56 | 63 | static::$kernel->addServiceToRegister($serviceId, $className, $tags); |
57 | 64 | } |
58 | 65 | |
66 | + /** |
|
67 | + * @param string $busId |
|
68 | + */ |
|
59 | 69 | protected function handleCommand($busId, $commandClass, array $args = []) |
60 | 70 | { |
61 | 71 | $class = new \ReflectionClass($commandClass); |
@@ -42,6 +42,9 @@ |
||
42 | 42 | $this->assertEquals(new Routing(['bus1', 'bus2']), $builders->createBlankRouting()); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string[] $ids |
|
47 | + */ |
|
45 | 48 | private function builders($ids, $default = 'bus1'): BusBuilders |
46 | 49 | { |
47 | 50 | return new BusBuilders($this->buildersNamed(...$ids), $default); |
@@ -41,6 +41,10 @@ |
||
41 | 41 | $this->busShouldBeCorrectlyRegisteredInContainer($container, 'default', 'some.method.inflector'); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $busId |
|
46 | + * @param string $methodInflector |
|
47 | + */ |
|
44 | 48 | private function busShouldBeCorrectlyRegisteredInContainer(ContainerBuilder $container, $busId, $methodInflector) |
45 | 49 | { |
46 | 50 | $handlerLocatorId = "tactician.commandbus.$busId.handler.locator"; |