From 5bd5a13f612d1a890b3e1e6e88a0e6dce0d37635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Wed, 16 Dec 2020 21:00:37 +0100 Subject: [PATCH] Extension: Use moder method addAnnotationPathToManager(). --- src/CmsExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CmsExtension.php b/src/CmsExtension.php index ca3d33a..ba23eba 100644 --- a/src/CmsExtension.php +++ b/src/CmsExtension.php @@ -53,9 +53,9 @@ public function getConfigSchema(): Schema public function beforeCompile(): void { - OrmAnnotationsExtension::addAnnotationPath('Baraja\Cms\User\Entity', __DIR__ . '/User/Entity'); - OrmAnnotationsExtension::addAnnotationPath('Baraja\DoctrineConfiguration', __DIR__ . '/Settings/Entity'); PluginComponentExtension::defineBasicServices($builder = $this->getContainerBuilder()); + OrmAnnotationsExtension::addAnnotationPathToManager($builder, 'Baraja\Cms\User\Entity', __DIR__ . '/User/Entity'); + OrmAnnotationsExtension::addAnnotationPathToManager($builder, 'Baraja\DoctrineConfiguration', __DIR__ . '/Settings/Entity'); // linkGenerator $builder->addDefinition($this->prefix('linkGenerator'))