From 7fad6d36d05830be6ba49ad6ea2f952d0d14a267 Mon Sep 17 00:00:00 2001 From: Alexander Zamponi Date: Wed, 25 Nov 2020 16:20:54 +0100 Subject: [PATCH] fixed config bug with Doctrine driver paths fixed config from zfv to lmc --- config/module.config.php | 5 +++-- src/Module.php | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/module.config.php b/config/module.config.php index 39ce601..033ca52 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -9,9 +9,10 @@ 'driver' => [ 'lmcuser_entity' => [ 'class' => XmlDriver::class, - 'paths' => __DIR__ . '/xml/lmcuser' + 'paths' => [ + __DIR__ . '/xml/lmcuser' + ] ], - 'orm_default' => [ 'drivers' => [ 'LmcUser\Entity' => 'lmcuser_entity' diff --git a/src/Module.php b/src/Module.php index a6c633e..7ee03c2 100644 --- a/src/Module.php +++ b/src/Module.php @@ -45,8 +45,8 @@ public function getServiceConfig(): array }, 'lmcuser_user_mapper' => function ($sm) { return new User( - $sm->get('zfcuser_doctrine_em'), - $sm->get('zfcuser_module_options') + $sm->get('lmcuser_doctrine_em'), + $sm->get('lmcuser_module_options') ); }, ], @@ -58,6 +58,6 @@ public function getServiceConfig(): array */ public function getConfig() { - return include __DIR__ . '../config/module.config.php'; + return include __DIR__ . '/../config/module.config.php'; } }