Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
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 | if (!$config['serializer']['enabled']) { |
||
33 | return; |
||
34 | } |
||
35 | |||
36 | $container->setParameter( |
||
37 | 'chrisyue_auto_json_response.serializer.default_groups', |
||
38 | $config['serializer']['default_groups'] |
||
39 | ); |
||
40 | } |
||
41 | } |
||
42 |