Commit 806db90d authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Migration vers laminas

parent d507f84b
Pipeline #11084 passed with stage
in 30 seconds
......@@ -2,7 +2,7 @@
namespace UnicaenAuth\Event;
class EventManager extends \Zend\EventManager\EventManager
class EventManager extends \Laminas\EventManager\EventManager
{
}
\ No newline at end of file
......@@ -7,9 +7,9 @@ use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenAuth\Entity\Db\AbstractUser;
use UnicaenAuth\Event\UserAuthenticatedEvent;
use UnicaenAuth\Service\Traits\UserContextServiceAwareTrait;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;
use Zend\EventManager\ListenerAggregateTrait;
use Laminas\EventManager\EventManagerInterface;
use Laminas\EventManager\ListenerAggregateInterface;
use Laminas\EventManager\ListenerAggregateTrait;
/**
* Classe abstraites pour les classes désirant scruter un événement déclenché lors de l'authentification
......
......@@ -2,8 +2,8 @@
namespace UnicaenAuth\Event\Listener;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;
use Laminas\EventManager\EventManagerInterface;
use Laminas\EventManager\ListenerAggregateInterface;
use UnicaenApp\Service\EntityManagerAwareInterface;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenAuth\Event\UserRoleSelectedEvent;
......@@ -20,7 +20,7 @@ abstract class UserRoleSelectedEventAbstractListener implements ListenerAggregat
use EntityManagerAwareTrait;
/**
* @var \Zend\Stdlib\CallbackHandler[]
* @var \Laminas\Stdlib\CallbackHandler[]
*/
protected $listeners = [];
......
......@@ -4,7 +4,7 @@ namespace UnicaenAuth\Event;
use UnicaenAuth\Entity\Shibboleth\ShibUser;
use UnicaenApp\Entity\Ldap\People;
use Zend\EventManager\Event;
use Laminas\EventManager\Event;
use ZfcUser\Entity\UserInterface;
/**
......
......@@ -2,8 +2,8 @@
namespace UnicaenAuth\Event;
use Zend\EventManager\Event;
use Zend\Permissions\Acl\Role\RoleInterface;
use Laminas\EventManager\Event;
use Laminas\Permissions\Acl\Role\RoleInterface;
/**
* Classe des événements déclenchés lors l'utilisateur a sélectionné rôle.
......
......@@ -3,7 +3,7 @@
namespace UnicaenAuth\Form;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\Factory\FactoryInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
class CasLoginFormFactory implements FactoryInterface
{
......
......@@ -5,11 +5,11 @@ namespace UnicaenAuth\Form\Droits;
use UnicaenApp\ServiceManager\ServiceLocatorAwareTrait;
use UnicaenAuth\Entity\Db\Role;
use UnicaenAuth\Service\Traits\RoleServiceAwareTrait;
use Zend\Form\Form;
use Laminas\Form\Form;
use UnicaenApp\Util;
use UnicaenApp\ServiceManager\ServiceLocatorAwareInterface;
use Zend\Hydrator\HydratorInterface;
use Zend\InputFilter\InputFilterProviderInterface;
use Laminas\Hydrator\HydratorInterface;
use Laminas\InputFilter\InputFilterProviderInterface;
/**
* Description of RoleForm
......@@ -82,7 +82,7 @@ class RoleForm extends Form implements ServiceLocatorAwareInterface, InputFilter
/**
* Should return an array specification compatible with
* {@link Zend\InputFilter\Factory::createInputFilter()}.
* {@link Laminas\InputFilter\Factory::createInputFilter()}.
*
* @return array
*/
......
......@@ -2,7 +2,7 @@
namespace UnicaenAuth\Form;
use Zend\Http\Request;
use Laminas\Http\Request;
use ZfcUser\Form\Login;
class LoginForm extends Login
......@@ -36,7 +36,7 @@ class LoginForm extends Login
}
/**
* @param \Zend\Http\Request $request
* @param \Laminas\Http\Request $request
* @return void
*/
public function initFromRequest(Request $request)
......
......@@ -3,7 +3,7 @@
namespace UnicaenAuth\Form;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\Factory\FactoryInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use ZfcUser\Form;
class LoginFormFactory implements FactoryInterface
......
......@@ -3,7 +3,7 @@
namespace UnicaenAuth\Form;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\Factory\FactoryInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
class ShibLoginFormFactory implements FactoryInterface
{
......
......@@ -2,7 +2,7 @@
namespace UnicaenAuth\Formatter;
use Zend\Permissions\Acl\Role\RoleInterface;
use Laminas\Permissions\Acl\Role\RoleInterface;
class RoleFormatter
{
......
......@@ -3,7 +3,7 @@
namespace UnicaenAuth\Guard;
use BjyAuthorize\Guard\Controller;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
use UnicaenAuth\Provider\Privilege\PrivilegeProviderAwareTrait;
use UnicaenApp\Traits\SessionContainerTrait;
......
......@@ -3,7 +3,7 @@
namespace UnicaenAuth\Guard;
use BjyAuthorize\Guard\Route;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
use UnicaenAuth\Provider\Privilege\PrivilegeProviderAwareTrait;
use UnicaenApp\Traits\SessionContainerTrait;
......
......@@ -3,8 +3,8 @@
namespace UnicaenAuth\Mouchard;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\ServiceManager\FactoryInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
/**
* Description of MouchardCompleterAuthFactory
......
......@@ -9,7 +9,7 @@ use Doctrine\ORM\Events;
use RuntimeException;
use UnicaenApp\Entity\HistoriqueAwareInterface;
use UnicaenAuth\Entity\Db\AbstractUser;
use Zend\Authentication\AuthenticationService;
use Laminas\Authentication\AuthenticationService;
/**
* Listener Doctrine.
......
......@@ -3,9 +3,9 @@
namespace UnicaenAuth\ORM\Event\Listeners;
use Interop\Container\ContainerInterface;
use Zend\Authentication\AuthenticationService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\Authentication\AuthenticationService;
use Laminas\ServiceManager\FactoryInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
/**
* Description of MouchardServiceFactory
......@@ -22,7 +22,7 @@ class HistoriqueListenerFactory implements FactoryInterface
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
/** @var AuthenticationService $authenticationService */
$authenticationService = $container->get('Zend\Authentication\AuthenticationService');
$authenticationService = $container->get('Laminas\Authentication\AuthenticationService');
$listener = new HistoriqueListener();
$listener->setAuthenticationService($authenticationService);
......
......@@ -334,7 +334,7 @@ class ModuleOptions extends \ZfcUser\Options\ModuleOptions
}
/**
* Cette classe hérite de {@see \Zend\Stdlib\AbstractOptions} qui impose d'avoir un getter correspondant à chaque
* Cette classe hérite de {@see \Laminas\Stdlib\AbstractOptions} qui impose d'avoir un getter correspondant à chaque
* clé de config fournie. Cela empêche par ex unicaen/auth-token d'ajouter le type d'authentification 'token'
* sans ajouter un getToken() à cette classe, ce qui serait une dépendance inversée.
*
......
......@@ -3,8 +3,8 @@
namespace UnicaenAuth\Provider\Identity;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\ServiceManager\FactoryInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
/**
* Basic identity provider factory.
......
......@@ -5,10 +5,10 @@ namespace UnicaenAuth\Provider\Identity;
use BjyAuthorize\Provider\Identity\ProviderInterface;
use BjyAuthorize\Service\Authorize;
use UnicaenAuth\Service\UserContext;
use Zend\EventManager\EventManagerAwareInterface;
use Zend\EventManager\EventManagerAwareTrait;
use Zend\Permissions\Acl\Role\Registry;
use Zend\Permissions\Acl\Role\RoleInterface;
use Laminas\EventManager\EventManagerAwareInterface;
use Laminas\EventManager\EventManagerAwareTrait;
use Laminas\Permissions\Acl\Role\Registry;
use Laminas\Permissions\Acl\Role\RoleInterface;
/**
* Chaîne de responsabilité permettant à plusieures sources de fournir
......
<?php
namespace UnicaenAuth\Provider\Identity;
use Zend\EventManager\Event;
use Laminas\EventManager\Event;
use Traversable;
/**
......
Supports Markdown
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