Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function process(ContainerBuilder $container) |
||
27 | { |
||
28 | $customTypes = $container->getParameter('doctrine.dbal.connection_factory.types'); |
||
29 | $customTypes = array_merge($customTypes, [ |
||
30 | 'phone' => [ |
||
31 | 'class' => PhoneType::class, |
||
32 | 'commented' => true, |
||
33 | ], |
||
34 | ]); |
||
35 | |||
36 | $container->setParameter('doctrine.dbal.connection_factory.types', $customTypes); |
||
37 | $container->findDefinition('doctrine.dbal.connection_factory')->replaceArgument( |
||
38 | 0, '%doctrine.dbal.connection_factory.types%' |
||
39 | ); |
||
40 | } |
||
41 | } |
||
42 |