| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function process(ContainerBuilder $container) |
||
| 12 | { |
||
| 13 | if (!$container->has('form.registry')) { |
||
| 14 | return; |
||
| 15 | } |
||
| 16 | |||
| 17 | $registryDef = $container->getDefinition('form.registry'); |
||
| 18 | $extensions = $registryDef->getArgument(0); |
||
| 19 | $extensions[] = new Reference('psi_content_type.form.extension.field'); |
||
| 20 | $registryDef->replaceArgument(0, $extensions); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |