| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function load(array $configs, ContainerBuilder $container) |
|
| 19 | { |
||
| 20 | 1 | $loader = new Loader\YamlFileLoader( |
|
| 21 | $container, |
||
| 22 | 1 | new FileLocator(__DIR__.'/../Resources/config') |
|
| 23 | ); |
||
| 24 | 1 | $loader->load('services.yml'); |
|
| 25 | 1 | $config = $this->processConfiguration( |
|
| 26 | 1 | new Configuration, |
|
| 27 | $configs |
||
| 28 | ); |
||
| 29 | |||
| 30 | $this |
||
| 31 | 1 | ->registerTypes($config['types'], $container) |
|
| 32 | 1 | ->registerContentTypeFormats($config['content_type'], $container); |
|
| 33 | 1 | } |
|
| 34 | |||
| 62 |