Commit 693c9bbe authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Migration vers laminas

parent 11f5c7c8
......@@ -4,8 +4,8 @@ namespace UnicaenFaq;
use UnicaenApp\Exception\RuntimeException;
use UnicaenFaq\Service\FaqService;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Laminas\Mvc\ModuleRouteListener;
use Laminas\Mvc\MvcEvent;
class Module
{
......@@ -28,7 +28,7 @@ class Module
public function getAutoloaderConfig()
{
return [
'Zend\Loader\StandardAutoloader' => [
'Laminas\Loader\StandardAutoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
],
......
{
"name": "unicaen/faq",
"description": "Module de foire aux questions",
"repositories": [
{
"type": "composer",
"url": "https://gest.unicaen.fr/packagist"
}
],
"require": {
"unicaen/app": "dev-release_4.0.0"
},
"require-dev": {
"zendframework/zend-test": "^3.0",
"phpunit/phpunit": "^5.6",
"phpspec/prophecy": "^1.6"
},
"autoload": {
"psr-0": {
"UnicaenFaq": "src/"
"name": "unicaen/faq",
"description": "Module de foire aux questions",
"repositories": [
{
"type": "composer",
"url": "https://gest.unicaen.fr/packagist"
}
],
"require": {
"unicaen/app": "dev-release_4.0.0",
"laminas/laminas-dependency-plugin": "^2.1"
},
"require-dev": {
"laminas/laminas-test": "^3.0",
"phpunit/phpunit": "^5.6",
"phpspec/prophecy": "^1.6"
},
"classmap": [
"./Module.php"
]
}
"autoload": {
"psr-0": {
"UnicaenFaq": "src/"
},
"classmap": [
"./Module.php"
]
}
}
This diff is collapsed.
......@@ -6,7 +6,7 @@ use Interop\Container\ContainerInterface;
use UnicaenFaq\Controller\FaqController;
use UnicaenFaq\Form\FaqForm;
use UnicaenFaq\Service\FaqService;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
class FaqControllerFactory
{
......
......@@ -8,8 +8,8 @@ use UnicaenFaq\Entity\Db\Faq;
use UnicaenFaq\Form\FaqForm;
use UnicaenFaq\Service\FaqServiceAwareInterface;
use UnicaenFaq\Service\FaqServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class FaqController extends AbstractActionController implements FaqServiceAwareInterface
{
......@@ -35,7 +35,7 @@ class FaqController extends AbstractActionController implements FaqServiceAwareI
$qb = $this->faqService->getRepository()->createQueryBuilder('f');
$qb->addOrderBy('f.ordre');
$paginator = new \Zend\Paginator\Paginator(new DoctrinePaginator(new Paginator($qb, true)));
$paginator = new \Laminas\Paginator\Paginator(new DoctrinePaginator(new Paginator($qb, true)));
$paginator->setItemCountPerPage(-1);
$viewModel = new ViewModel([
......
......@@ -2,7 +2,7 @@
namespace UnicaenFaq\Entity\Db;
use Zend\Permissions\Acl\Resource\ResourceInterface;
use Laminas\Permissions\Acl\Resource\ResourceInterface;
/**
* Entité représentant un couple question-réponse.
......
......@@ -5,7 +5,7 @@ namespace UnicaenFaq\Form\Factory;
use DoctrineModule\Stdlib\Hydrator\DoctrineObject;
use Interop\Container\ContainerInterface;
use UnicaenFaq\Form\FaqForm;
use Zend\Hydrator\HydratorPluginManager;
use Laminas\Hydrator\HydratorPluginManager;
class FaqFormFactory
{
......
......@@ -3,11 +3,11 @@
namespace UnicaenFaq\Form;
use UnicaenFaq\Entity\Db\Faq;
use Zend\Form\Element\Submit;
use Zend\Form\Element\Text;
use Zend\Form\Element\Textarea;
use Zend\Form\Form;
use Zend\InputFilter\Factory;
use Laminas\Form\Element\Submit;
use Laminas\Form\Element\Text;
use Laminas\Form\Element\Textarea;
use Laminas\Form\Form;
use Laminas\InputFilter\Factory;
class FaqForm extends Form
{
......
......@@ -4,9 +4,9 @@ namespace UnicaenFaq\Service;
use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\Exception\InvalidArgumentException;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Laminas\ServiceManager\Exception\InvalidArgumentException;
use Laminas\ServiceManager\FactoryInterface;
use Laminas\ServiceManager\ServiceLocatorInterface;
final class FaqServiceFactory implements FactoryInterface
{
......
......@@ -3,8 +3,8 @@
use UnicaenAuth\Provider\Privilege\Privileges;
use UnicaenFaq\Entity\Db\Faq;
use UnicaenFaq\Provider\Privilege\FaqPrivileges;
use Zend\View\Renderer\PhpRenderer;
use Zend\Paginator\Paginator;
use Laminas\View\Renderer\PhpRenderer;
use Laminas\Paginator\Paginator;
/**
* @var PhpRenderer $this
......
<?php
use UnicaenFaq\Form\FaqForm;
use Zend\View\Renderer\PhpRenderer;
use Laminas\View\Renderer\PhpRenderer;
/**
* @var PhpRenderer $this
......
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