Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
31 | 2 | public function load(array $configs, ContainerBuilder $container) |
|
32 | { |
||
33 | 2 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
34 | 2 | $loader->load('services.yml'); |
|
35 | |||
36 | 2 | $config = $this->processConfiguration(new Configuration(), $configs); |
|
37 | |||
38 | 1 | $container->setAlias('best_it_kitchensink.data_provider', $config['data_provider']); |
|
39 | 1 | $container->setAlias('best_it_kitchensink.template_engine', $config['template_engine']); |
|
40 | 1 | $container->setParameter('best_it_kitchensink.template', $config['template']); |
|
41 | 1 | } |
|
42 | } |
||
43 |