| Conditions | 5 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function load(array $configs, ContainerBuilder $container) |
||
| 21 | { |
||
| 22 | $configuration = new Configuration(); |
||
| 23 | $config = $this->processConfiguration($configuration, $configs); |
||
| 24 | |||
| 25 | $container->setParameter("mykees.media.extension", isset($config["allowExtension"]) ? $config["allowExtension"] : null); |
||
| 26 | $container->setParameter("mykees.media.path", isset($config["path"]) ? $config["path"] : null); |
||
| 27 | $container->setParameter("mykees.media.resize", isset($config["resize"]) ? $config["resize"] : null); |
||
| 28 | $container->setParameter("mykees.media.mode", isset($config["mode"]) ? $config["mode"] : null); |
||
| 29 | |||
| 30 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 31 | $loader->load('services.yml'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |