Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function build(ContainerBuilder $container) |
||
35 | { |
||
36 | $this->checkDependencies(['BenGorUserBundle', 'DoctrineBundle'], $container); |
||
37 | |||
38 | $container |
||
39 | ->addCompilerPass(new DoctrineORMCustomTypesPass(), PassConfig::TYPE_OPTIMIZE) |
||
40 | ->addCompilerPass(new DoctrineORMServicesPass(), PassConfig::TYPE_OPTIMIZE); |
||
41 | |||
42 | $container->loadFromExtension('doctrine', [ |
||
43 | 'orm' => [ |
||
44 | 'mappings' => [ |
||
45 | 'DoctrineORMBridgeBundle' => [ |
||
46 | 'type' => 'yml', |
||
47 | 'is_bundle' => true, |
||
48 | 'prefix' => 'BenGorUser\\User\\Domain\\Model', |
||
49 | ], |
||
50 | ], |
||
51 | ], |
||
52 | ]); |
||
53 | } |
||
54 | } |
||
55 |