1 | <?php namespace League\Tactician\Bundle\DependencyInjection; |
||
10 | class TacticianExtension extends ConfigurableExtension |
||
11 | { |
||
12 | /** |
||
13 | * Configures the passed container according to the merged configuration. |
||
14 | * |
||
15 | * @param array $mergedConfig |
||
16 | * @param ContainerBuilder $container |
||
17 | */ |
||
18 | 15 | protected function loadInternal(array $mergedConfig, ContainerBuilder $container) |
|
19 | { |
||
20 | 15 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services')); |
|
21 | 15 | $loader->load('services.yml'); |
|
22 | |||
23 | 15 | $this->configureCommandBuses($mergedConfig, $container); |
|
24 | 15 | $this->injectMethodNameInflector($mergedConfig, $container); |
|
25 | 15 | } |
|
26 | |||
27 | 15 | public function getAlias() |
|
31 | |||
32 | /** |
||
33 | * @param array $mergedConfig |
||
34 | * @param ContainerBuilder $container |
||
35 | */ |
||
36 | 15 | private function configureCommandBuses(array $mergedConfig, ContainerBuilder $container) |
|
55 | |||
56 | /** |
||
57 | * Define the default Method Name Inflector. |
||
58 | * This will fail silently if the command_handler service does not exist |
||
59 | * |
||
60 | * @param array $mergedConfig |
||
61 | * @param ContainerBuilder $container |
||
62 | */ |
||
63 | 15 | private function injectMethodNameInflector(array $mergedConfig, ContainerBuilder $container) |
|
74 | } |
||
75 |