Conditions | 3 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
26 | public function prepend(ContainerBuilder $container) |
||
27 | { |
||
28 | foreach ($container->getExtensions() as $name => $extension) { |
||
29 | if ('doctrine' !== $name) { |
||
|
|||
30 | continue; |
||
31 | } |
||
32 | |||
33 | $container->prependExtensionConfig($name, [ |
||
34 | 'orm' => [ |
||
35 | 'mappings' => [ |
||
36 | 'Loevgaard\\DandomainStock\\Entity' => [ |
||
37 | 'type' => 'annotation', |
||
38 | 'dir' => '%kernel.project_dir%/vendor/loevgaard/dandomain-stock-entities/src/Entity', |
||
39 | 'is_bundle' => false, |
||
40 | 'prefix' => 'Loevgaard\\DandomainStock\\Entity', |
||
41 | ], |
||
42 | ], |
||
43 | ], |
||
44 | ]); |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 |