Skip to content
Snippets Groups Projects
Commit bea9c6d2 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Migration vers laminas

parent ad8f5627
No related branches found
No related tags found
No related merge requests found
Showing
with 63 additions and 2968 deletions
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
namespace UnicaenLdap; namespace UnicaenLdap;
use Zend\ModuleManager\Feature\AutoloaderProviderInterface; use Laminas\ModuleManager\Feature\AutoloaderProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface; use Laminas\ModuleManager\Feature\ConfigProviderInterface;
class Module implements ConfigProviderInterface class Module implements ConfigProviderInterface
{ {
...@@ -25,10 +25,10 @@ class Module implements ConfigProviderInterface ...@@ -25,10 +25,10 @@ class Module implements ConfigProviderInterface
public function getAutoloaderConfig() public function getAutoloaderConfig()
{ {
return array( return array(
'Zend\Loader\ClassMapAutoloader' => array( 'Laminas\Loader\ClassMapAutoloader' => array(
__DIR__ . '/autoload_classmap.php', __DIR__ . '/autoload_classmap.php',
), ),
'Zend\Loader\StandardAutoloader' => array( 'Laminas\Loader\StandardAutoloader' => array(
'namespaces' => array( 'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
), ),
......
...@@ -3,18 +3,19 @@ ...@@ -3,18 +3,19 @@
"description": "Module Ldap des applications Unicaen", "description": "Module Ldap des applications Unicaen",
"require": { "require": {
"php": "7.3.*", "php": "7.3.*",
"zendframework/zend-config": "^3.2", "laminas/laminas-config": "^3.2",
"zendframework/zend-i18n": "^2.9", "laminas/laminas-i18n": "^2.9",
"zendframework/zend-ldap": "^2.10", "laminas/laminas-ldap": "^2.10",
"zendframework/zend-log": "^2.10", "laminas/laminas-log": "^2.10",
"zendframework/zend-modulemanager": "^2.8", "laminas/laminas-modulemanager": "^2.8",
"zendframework/zend-serializer": "^2.9", "laminas/laminas-serializer": "^2.9",
"zendframework/zend-servicemanager": "^3.4", "laminas/laminas-servicemanager": "^3.4",
"zendframework/zend-stdlib": "^3.2" "laminas/laminas-stdlib": "^3.2",
"laminas/laminas-dependency-plugin": "^2.1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=3.7", "phpunit/phpunit": ">=3.7",
"zendframework/zend-test": "^3.2" "laminas/laminas-test": "^3.2"
}, },
"autoload": { "autoload": {
"psr-0": { "psr-0": {
......
This diff is collapsed.
...@@ -20,7 +20,7 @@ use UnicaenLdap\Service\Structure as LdapStructureService; ...@@ -20,7 +20,7 @@ use UnicaenLdap\Service\Structure as LdapStructureService;
use UnicaenLdap\Service\StructureFactory as StructureServiceFactory; use UnicaenLdap\Service\StructureFactory as StructureServiceFactory;
use UnicaenLdap\Service\System as LdapSystemService; use UnicaenLdap\Service\System as LdapSystemService;
use UnicaenLdap\Service\SystemFactory as SystemServiceFactory; use UnicaenLdap\Service\SystemFactory as SystemServiceFactory;
use Zend\ServiceManager\Proxy\LazyServiceFactory; use Laminas\ServiceManager\Proxy\LazyServiceFactory;
return array( return array(
'unicaen-ldap' => [ 'unicaen-ldap' => [
......
...@@ -4,8 +4,8 @@ namespace UnicaenLdap\Entity\Base; ...@@ -4,8 +4,8 @@ namespace UnicaenLdap\Entity\Base;
use UnicaenLdap\Entity\Entity; use UnicaenLdap\Entity\Entity;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use Zend\Ldap\Attribute; use Laminas\Ldap\Attribute;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère des entités de la branche "generic" de l'annuaire LDAP. * Classe mère des entités de la branche "generic" de l'annuaire LDAP.
......
...@@ -7,8 +7,8 @@ use UnicaenLdap\Entity\People as PeopleEntity; ...@@ -7,8 +7,8 @@ use UnicaenLdap\Entity\People as PeopleEntity;
use UnicaenLdap\Entity\Structure as StructureEntity; use UnicaenLdap\Entity\Structure as StructureEntity;
use UnicaenLdap\Entity\System as SystemEntity; use UnicaenLdap\Entity\System as SystemEntity;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use Zend\Ldap\Dn; use Laminas\Ldap\Dn;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère des entités de la branche "groups" de l'annuaire LDAP. * Classe mère des entités de la branche "groups" de l'annuaire LDAP.
......
...@@ -7,9 +7,9 @@ use UnicaenLdap\Entity\Entity; ...@@ -7,9 +7,9 @@ use UnicaenLdap\Entity\Entity;
use UnicaenLdap\Entity\People as PeopleEntity; use UnicaenLdap\Entity\People as PeopleEntity;
use UnicaenLdap\Entity\Structure as StructureEntity; use UnicaenLdap\Entity\Structure as StructureEntity;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use Zend\Ldap\Attribute; use Laminas\Ldap\Attribute;
use Zend\Ldap\Dn; use Laminas\Ldap\Dn;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère des entités de la branche "people" de l'annuaire LDAP. * Classe mère des entités de la branche "people" de l'annuaire LDAP.
......
...@@ -5,7 +5,7 @@ namespace UnicaenLdap\Entity\Base; ...@@ -5,7 +5,7 @@ namespace UnicaenLdap\Entity\Base;
use UnicaenLdap\Entity\Entity; use UnicaenLdap\Entity\Entity;
use UnicaenLdap\Entity\Structure as StructureEntity; use UnicaenLdap\Entity\Structure as StructureEntity;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère de l'entité racine de l'annuaire LDAP. * Classe mère de l'entité racine de l'annuaire LDAP.
......
...@@ -5,7 +5,7 @@ namespace UnicaenLdap\Entity\Base; ...@@ -5,7 +5,7 @@ namespace UnicaenLdap\Entity\Base;
use UnicaenLdap\Entity\Entity; use UnicaenLdap\Entity\Entity;
use UnicaenLdap\Entity\Structure as StructureEntity; use UnicaenLdap\Entity\Structure as StructureEntity;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère des entités de la branche "structures" de l'annuaire LDAP. * Classe mère des entités de la branche "structures" de l'annuaire LDAP.
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace UnicaenLdap\Entity\Base; namespace UnicaenLdap\Entity\Base;
use UnicaenLdap\Entity\Entity; use UnicaenLdap\Entity\Entity;
use Zend\Ldap\Attribute; use Laminas\Ldap\Attribute;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère des entités de la branche "system" de l'annuaire LDAP. * Classe mère des entités de la branche "system" de l'annuaire LDAP.
......
...@@ -6,8 +6,8 @@ use UnicaenLdap\Node; ...@@ -6,8 +6,8 @@ use UnicaenLdap\Node;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use UnicaenLdap\Service\AbstractService; use UnicaenLdap\Service\AbstractService;
use UnicaenLdap\Util; use UnicaenLdap\Util;
use Zend\Ldap\Dn; use Laminas\Ldap\Dn;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe mère des entrées de l'annuaire LDAP. * Classe mère des entrées de l'annuaire LDAP.
...@@ -473,7 +473,7 @@ abstract class Entity ...@@ -473,7 +473,7 @@ abstract class Entity
* Node will be moved on calling update(). * Node will be moved on calling update().
* *
* @param string | Dn $newDn * @param string | Dn $newDn
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function move(string $newOu) public function move(string $newOu)
{ {
...@@ -500,7 +500,7 @@ abstract class Entity ...@@ -500,7 +500,7 @@ abstract class Entity
* This is an offline method. Node will be renamed on calling update(). * This is an offline method. Node will be renamed on calling update().
* *
* @param string | Dn $newDn * @param string | Dn $newDn
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function rename($newId) public function rename($newId)
{ {
......
...@@ -44,7 +44,7 @@ class Group extends BaseGroup ...@@ -44,7 +44,7 @@ class Group extends BaseGroup
* *
* @param string $orderBy Champ de tri (au besoin) * @param string $orderBy Champ de tri (au besoin)
* @return People[] * @return People[]
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function getMembres($orderBy = null) public function getMembres($orderBy = null)
{ {
......
...@@ -8,7 +8,7 @@ use UnicaenLdap\Entity\Group as GroupEntity; ...@@ -8,7 +8,7 @@ use UnicaenLdap\Entity\Group as GroupEntity;
use UnicaenLdap\Entity\Structure as StructureEntity; use UnicaenLdap\Entity\Structure as StructureEntity;
use UnicaenLdap\Entity\System as SystemEntity; use UnicaenLdap\Entity\System as SystemEntity;
use UnicaenLdap\Exception; use UnicaenLdap\Exception;
use Zend\Ldap\Dn; use Laminas\Ldap\Dn;
/** /**
* Classe de gestion des entités de la branche "people" de l'annuaire LDAP. * Classe de gestion des entités de la branche "people" de l'annuaire LDAP.
...@@ -118,7 +118,7 @@ class People extends BasePeople ...@@ -118,7 +118,7 @@ class People extends BasePeople
* *
* @return People|SystemEntity|string|null * @return People|SystemEntity|string|null
* @throws Exception * @throws Exception
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function getParrain() public function getParrain()
{ {
...@@ -451,7 +451,7 @@ class People extends BasePeople ...@@ -451,7 +451,7 @@ class People extends BasePeople
* @param string|Dn|StructureEntity $value * @param string|Dn|StructureEntity $value
* @return bool * @return bool
* @throws Exception * @throws Exception
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function isInStructure($value) public function isInStructure($value)
{ {
...@@ -629,7 +629,7 @@ class People extends BasePeople ...@@ -629,7 +629,7 @@ class People extends BasePeople
* @param string|Dn|StructureEntity|null $value * @param string|Dn|StructureEntity|null $value
* @return bool * @return bool
* @throws Exception * @throws Exception
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function hasRoleInStructure(string $role, string $type, $structure = null): bool public function hasRoleInStructure(string $role, string $type, $structure = null): bool
{ {
...@@ -711,7 +711,7 @@ class People extends BasePeople ...@@ -711,7 +711,7 @@ class People extends BasePeople
* @param string $value * @param string $value
* @return $this * @return $this
* @throws \UnicaenLdap\Exception * @throws \UnicaenLdap\Exception
* @throws \Zend\Ldap\Exception\LdapException * @throws \Laminas\Ldap\Exception\LdapException
*/ */
public function setPassword(string $value) public function setPassword(string $value)
{ {
......
...@@ -4,7 +4,7 @@ namespace UnicaenLdap\Entity; ...@@ -4,7 +4,7 @@ namespace UnicaenLdap\Entity;
use UnicaenLdap\Entity\Base\Root as BaseRoot; use UnicaenLdap\Entity\Base\Root as BaseRoot;
use UnicaenLdap\Filter\Filter; use UnicaenLdap\Filter\Filter;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe de gestion de l'entité racine de l'annuaire LDAP. * Classe de gestion de l'entité racine de l'annuaire LDAP.
......
...@@ -4,7 +4,7 @@ namespace UnicaenLdap\Entity; ...@@ -4,7 +4,7 @@ namespace UnicaenLdap\Entity;
use UnicaenLdap\Entity\Base\Structure as BaseStructure; use UnicaenLdap\Entity\Base\Structure as BaseStructure;
use UnicaenLdap\Filter\Filter; use UnicaenLdap\Filter\Filter;
use Zend\Ldap\Exception\LdapException; use Laminas\Ldap\Exception\LdapException;
/** /**
* Classe de gestion des entités de la branche "structures" de l'annuaire LDAP. * Classe de gestion des entités de la branche "structures" de l'annuaire LDAP.
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
namespace UnicaenLdap\Filter; namespace UnicaenLdap\Filter;
use Zend\Ldap\Filter as ZendFilter; use Laminas\Ldap\Filter as LaminasFilter;
/** /**
* Filtre de base * Filtre de base
* *
* @author Laurent Lécluse <laurent.lecluse at unicaen.fr> * @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
*/ */
class Filter extends ZendFilter class Filter extends LaminasFilter
{ {
} }
\ No newline at end of file
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
namespace UnicaenLdap\Filter; namespace UnicaenLdap\Filter;
use Zend\Ldap\Filter\AbstractFilter; use Laminas\Ldap\Filter\AbstractFilter;
use Zend\Ldap\Filter\MaskFilter; use Laminas\Ldap\Filter\MaskFilter;
/** /**
* Filtres pour les personnes. * Filtres pour les personnes.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace UnicaenLdap\Filter; namespace UnicaenLdap\Filter;
use Zend\Ldap\Filter; use Laminas\Ldap\Filter;
/** /**
* Filtres pour les structures * Filtres pour les structures
......
...@@ -7,6 +7,6 @@ namespace UnicaenLdap; ...@@ -7,6 +7,6 @@ namespace UnicaenLdap;
* *
* @author Laurent Lécluse <laurent.lecluse at unicaen.fr> * @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
*/ */
class Ldap extends \Zend\Ldap\Ldap { class Ldap extends \Laminas\Ldap\Ldap {
} }
\ No newline at end of file
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace UnicaenLdap; namespace UnicaenLdap;
use Interop\Container\ContainerInterface; use Interop\Container\ContainerInterface;
use Zend\ServiceManager\FactoryInterface; use Laminas\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface; use Laminas\ServiceManager\ServiceLocatorInterface;
/** /**
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment