|
@@ 55-61 (lines=7) @@
|
| 52 |
|
|
| 53 |
|
switch ($this->mappingFormat) { |
| 54 |
|
case BundleInterface::MAPPING_XML: |
| 55 |
|
case BundleInterface::MAPPING_YAML: |
| 56 |
|
$container->addCompilerPass($compilerPassClassName::$compilerPassMethod( |
| 57 |
|
[$this->getConfigFilesPath($driver) => $this->getModelClassNamespace()], |
| 58 |
|
[sprintf('%s.persistence.manager_name', $this->getBundlePrefix())], |
| 59 |
|
sprintf('%s.backend_type_%s', $this->getBundlePrefix(), $driver) |
| 60 |
|
)); |
| 61 |
|
|
| 62 |
|
break; |
| 63 |
|
case BundleInterface::MAPPING_ANNOTATION: |
| 64 |
|
$container->addCompilerPass($compilerPassClassName::$compilerPassMethod( |
|
@@ 63-70 (lines=8) @@
|
| 60 |
|
)); |
| 61 |
|
|
| 62 |
|
break; |
| 63 |
|
case BundleInterface::MAPPING_ANNOTATION: |
| 64 |
|
$container->addCompilerPass($compilerPassClassName::$compilerPassMethod( |
| 65 |
|
[$this->getModelClassNamespace()], |
| 66 |
|
[$this->getConfigFilesPath($driver)], |
| 67 |
|
[sprintf('%s.persistence.manager_name', $this->getBundlePrefix())], |
| 68 |
|
sprintf('%s.backend_type_%s', $this->getBundlePrefix(), $driver) |
| 69 |
|
)); |
| 70 |
|
|
| 71 |
|
break; |
| 72 |
|
} |
| 73 |
|
} |