| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function load(array $configs, ContainerBuilder $container) |
||
| 25 | { |
||
| 26 | $configuration = new Configuration(); |
||
| 27 | $config = $this->processConfiguration($configuration, $configs); |
||
| 28 | |||
| 29 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 30 | $loader->load('services.yml'); |
||
| 31 | |||
| 32 | $container->getDefinition(self::REPOSITORY_DEFINITION_ID) |
||
| 33 | ->replaceArgument(0, $config['read_key']) |
||
| 34 | ->replaceArgument(1, $config['base_url']) |
||
| 35 | ->replaceArgument(2, new Definition('%guzzle.http_client.class%')) |
||
| 36 | ; |
||
| 37 | |||
| 38 | $container->getDefinition(self::COMMAND_DEFINITION_ID) |
||
| 39 | ->replaceArgument(2, $config['pull_path']) |
||
| 40 | ; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |