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