Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function load(ContainerBuilder $container, array $config) |
||
16 | { |
||
17 | $container->setParameter('rezzza.json_api.rest.base_url', $config['rest']['base_url']); |
||
18 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/Resources')); |
||
19 | $loader->load('services.xml'); |
||
20 | |||
21 | if (true === $config['rest']['store_response']) { |
||
22 | $definitionRestApiBrowser = $container->findDefinition('rezzza.json_api.rest.rest_api_browser'); |
||
23 | $definitionRestApiBrowser->addMethodCall('enableResponseStorage', [new Reference('rezzza.json_api.json.json_storage')]); |
||
24 | } |
||
25 | } |
||
26 | |||
59 |