Skip to content

Commit

Permalink
fixed config bug with Doctrine driver paths
Browse files Browse the repository at this point in the history
fixed config from zfv to lmc
  • Loading branch information
Alexander Zamponi committed Nov 25, 2020
1 parent b6673b3 commit 7fad6d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
);
},
],
Expand All @@ -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';
}
}

0 comments on commit 7fad6d3

Please sign in to comment.