| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function load(array $configs, ContainerBuilder $container): void |
||
| 25 | { |
||
| 26 | $processor = new Processor(); |
||
| 27 | $config = $processor->processConfiguration(new Configuration(), $configs); |
||
| 28 | |||
| 29 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 30 | $loader->load('a2lix_form.xml'); |
||
| 31 | $loader->load('object_info.xml'); |
||
| 32 | |||
| 33 | $definition = $container->getDefinition('a2lix_auto_form.form.manipulator.doctrine_orm_manipulator'); |
||
| 34 | $definition->replaceArgument(1, $config['excluded_fields']); |
||
| 35 | |||
| 36 | $container->setAlias('a2lix_auto_form.manipulator.default', 'a2lix_auto_form.form.manipulator.doctrine_orm_manipulator'); |
||
| 37 | } |
||
| 39 |