Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
20 | 15 | public function build(ContainerBuilder $container) |
|
21 | { |
||
22 | 15 | $mappingDir = __DIR__.'/Resources/config/model'; |
|
23 | 15 | $namespace = __NAMESPACE__.'\Entity'; |
|
24 | |||
25 | 15 | $loadEntitiesCompilerPass = DoctrineOrmMappingsPass::createXmlMappingDriver( |
|
26 | 15 | [$mappingDir => $namespace], |
|
27 | 15 | [], |
|
28 | 15 | 'yokai_messenger.load_doctrine_orm_mapping', |
|
29 | 15 | [$this->getName() => $namespace] |
|
30 | ); |
||
31 | |||
32 | $container |
||
33 | 15 | ->addCompilerPass(new ConfigureSenderCompilerPass()) |
|
34 | 15 | ->addCompilerPass(new RegisterSwiftmailerConfiguratorCompilerPass()) |
|
35 | 15 | ->addCompilerPass(new RegisterMobileAdapterCompilerPass()) |
|
36 | 15 | ->addCompilerPass($loadEntitiesCompilerPass) |
|
37 | ; |
||
38 | 15 | } |
|
39 | } |
||
40 |