| Conditions | 4 |
| Paths | 3 |
| Total Lines | 26 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function load(array $configs, ContainerBuilder $container) |
||
| 13 | { |
||
| 14 | $config = $this->processConfiguration(new Configuration(), $configs); |
||
| 15 | |||
| 16 | foreach($config as $l1 => $val1) |
||
| 17 | { |
||
| 18 | if(is_array($val1)) |
||
| 19 | { |
||
| 20 | foreach ($val1 as $l2 => $val2) |
||
| 21 | { |
||
| 22 | $container->setParameter(sprintf('flying_colours_twilio_two_factor.%s.%s', $l1, $l2), $val2); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | else |
||
| 26 | { |
||
| 27 | $container->setParameter(sprintf('flying_colours_twilio_two_factor.%s', $l1), $val1); |
||
| 28 | } |
||
| 29 | |||
| 30 | } |
||
| 31 | |||
| 32 | $loader = new Loader\YamlFileLoader( |
||
| 33 | $container, |
||
| 34 | new FileLocator(__DIR__ . '/../Resources/config') |
||
| 35 | ); |
||
| 36 | |||
| 37 | $loader->load('services.yml'); |
||
| 38 | |||
| 42 |