src/Command/AbstractImportCommand.php 1 location
|
@@ 345-354 (lines=10) @@
|
| 342 |
|
); |
| 343 |
|
|
| 344 |
|
// register the JMS Serializer annotations |
| 345 |
|
foreach ($annotationDirectories as $annotationDirectory) { |
| 346 |
|
if (file_exists($annotationDirectory)) { |
| 347 |
|
\Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace( |
| 348 |
|
'JMS\Serializer\Annotation', |
| 349 |
|
$annotationDirectory |
| 350 |
|
); |
| 351 |
|
$loaded = true; |
| 352 |
|
break; |
| 353 |
|
} |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
// stop processing, if the JMS annotations can't be loaded |
| 357 |
|
if (!$loaded) { |
src/Command/AbstractSimpleImportCommand.php 1 location
|
@@ 109-118 (lines=10) @@
|
| 106 |
|
); |
| 107 |
|
|
| 108 |
|
// register the JMS Serializer annotations |
| 109 |
|
foreach ($annotationDirectories as $annotationDirectory) { |
| 110 |
|
if (file_exists($annotationDirectory)) { |
| 111 |
|
\Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace( |
| 112 |
|
'JMS\Serializer\Annotation', |
| 113 |
|
$annotationDirectory |
| 114 |
|
); |
| 115 |
|
$loaded = true; |
| 116 |
|
break; |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
// stop processing, if the JMS annotations can't be loaded |
| 121 |
|
if (!$loaded) { |