Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function load(array $config, ContainerBuilder $container) |
||
22 | { |
||
23 | $container |
||
24 | ->register('api.config', 'Openl10n\Sdk\Config') |
||
25 | ->addArgument($config['hostname']) |
||
26 | ->addArgument($config['use_ssl']) |
||
27 | ->addArgument($config['port']) |
||
28 | ->addMethodCall('setAuth', array($config['username'], $config['password'])) |
||
29 | ; |
||
30 | |||
31 | $container |
||
32 | ->register('api', 'Openl10n\Sdk\Api') |
||
33 | ->addArgument(new Reference('api.config')) |
||
34 | ; |
||
35 | } |
||
36 | |||
99 |