Skip to content

Commit a1f997e

Browse files
committed
user model added
1 parent 497f3f4 commit a1f997e

File tree

3 files changed

+6
-54
lines changed

3 files changed

+6
-54
lines changed

src/Mapper/Factory/UserMapperFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
*/
1414
class UserMapperFactory implements FactoryInterface
1515
{
16-
1716
/**
1817
* Create an object
1918
*
2019
* @param ContainerInterface $container
2120
* @param string $requestedName
2221
* @param null|array $options
23-
* @return object
22+
* @return UserMapper
2423
*/
2524
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
2625
{

src/Service/Factory/AuthAdapterFactory.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/Service/Factory/AuthAdapterServiceFactory.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace ProspectOne\UserModule\Service\Factory;
44

55
use Interop\Container\ContainerInterface;
6+
use ProspectOne\UserModule\Model\UserModel;
67
use ProspectOne\UserModule\Service\AuthAdapterService;
78
use Zend\Crypt\Password\Bcrypt;
89
use Zend\Http\PhpEnvironment\Request;
@@ -73,6 +74,9 @@ public function getParams(ContainerInterface $container)
7374
} else {
7475
$email = "";
7576
}
76-
return [$entityManager, $bcrypt, $headerEnabled, $header, $email, $userEntityClassName];
77+
78+
$userModoel = $container->get(UserModel::class);
79+
80+
return [$entityManager, $bcrypt, $headerEnabled, $header, $email, $userEntityClassName, $userModoel];
7781
}
7882
}

0 commit comments

Comments
 (0)