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