File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,14 @@ public function getConfigSchema(): Schema
2727
2828 public function beforeCompile (): void
2929 {
30- /** @var ServiceDefinition $annotationDriver */
31- $ annotationDriver = $ this ->getContainerBuilder ()->getDefinitionByType (MappingDriver::class);
32- $ annotationDriver ->addSetup ('addPaths ' , [['vendor/rixafy/image ' ]]);
30+ if (class_exists ('Nettrine\ORM\DI\Helpers\MappingHelper ' )) {
31+ \Nettrine \ORM \DI \Helpers \MappingHelper::of ($ this )
32+ ->addAnnotation ('Rixafy\Image ' , __DIR__ . '/../../../rixafy/image ' );
33+ } else {
34+ /** @var ServiceDefinition $annotationDriver */
35+ $ annotationDriver = $ this ->getContainerBuilder ()->getDefinitionByType (MappingDriver::class);
36+ $ annotationDriver ->addSetup ('addPaths ' , [['vendor/rixafy/image ' ]]);
37+ }
3338 }
3439
3540 public function loadConfiguration (): void
You can’t perform that action at this time.
0 commit comments