Commit 82a46f35 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction du type de UserMapper attendu par UtilisateurController.

parent f6d8df4d
Pipeline #4352 passed with stage
in 23 seconds
...@@ -16,7 +16,7 @@ use Zend\Authentication\AuthenticationService; ...@@ -16,7 +16,7 @@ use Zend\Authentication\AuthenticationService;
use Zend\Http\Request; use Zend\Http\Request;
use Zend\Http\Response; use Zend\Http\Response;
use Zend\Mvc\Controller\AbstractActionController; use Zend\Mvc\Controller\AbstractActionController;
use ZfcUser\Mapper\User as UserMapper; use ZfcUser\Mapper\UserInterface;
/** /**
* @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr> * @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>
...@@ -40,7 +40,7 @@ class UtilisateurController extends AbstractActionController ...@@ -40,7 +40,7 @@ class UtilisateurController extends AbstractActionController
} }
/** /**
* @var UserMapper * @var UserInterface
*/ */
private $userMapper; private $userMapper;
...@@ -55,9 +55,9 @@ class UtilisateurController extends AbstractActionController ...@@ -55,9 +55,9 @@ class UtilisateurController extends AbstractActionController
protected $options; protected $options;
/** /**
* @param UserMapper $userMapper * @param UserInterface $userMapper
*/ */
public function setUserMapper(UserMapper $userMapper) public function setUserMapper(UserInterface $userMapper)
{ {
$this->userMapper = $userMapper; $this->userMapper = $userMapper;
} }
...@@ -206,7 +206,7 @@ class UtilisateurController extends AbstractActionController ...@@ -206,7 +206,7 @@ class UtilisateurController extends AbstractActionController
} }
/** /**
* @return UserMapper * @return UserInterface
*/ */
public function getUserMapper() public function getUserMapper()
{ {
......
...@@ -8,7 +8,7 @@ use UnicaenAuth\Options\ModuleOptions; ...@@ -8,7 +8,7 @@ use UnicaenAuth\Options\ModuleOptions;
use UnicaenAuth\Service\ShibService; use UnicaenAuth\Service\ShibService;
use UnicaenAuth\Service\UserContext; use UnicaenAuth\Service\UserContext;
use Zend\Authentication\AuthenticationService; use Zend\Authentication\AuthenticationService;
use ZfcUser\Mapper\UserInterface as UserMapper; use ZfcUser\Mapper\UserInterface;
class UtilisateurControllerFactory class UtilisateurControllerFactory
{ {
...@@ -18,7 +18,7 @@ class UtilisateurControllerFactory ...@@ -18,7 +18,7 @@ class UtilisateurControllerFactory
*/ */
public function __invoke(ContainerInterface $container) public function __invoke(ContainerInterface $container)
{ {
/** @var UserMapper $mapper */ /** @var UserInterface $mapper */
$userMapper = $container->get('zfcuser_user_mapper'); $userMapper = $container->get('zfcuser_user_mapper');
/** @var AuthenticationService $authenticationService */ /** @var AuthenticationService $authenticationService */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment