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