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