Commit 7284df61 authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

Migration Laminas

parent 8a0c090e
Pipeline #13447 passed with stage
in 23 seconds
......@@ -2,11 +2,11 @@
namespace UnicaenRenderer;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Zend\Stdlib\ArrayUtils;
use Zend\Stdlib\Glob;
use Zend\Config\Factory as ConfigFactory;
use Laminas\Mvc\ModuleRouteListener;
use Laminas\Mvc\MvcEvent;
use Laminas\Stdlib\ArrayUtils;
use Laminas\Stdlib\Glob;
use Laminas\Config\Factory as ConfigFactory;
class Module
{
......@@ -18,7 +18,7 @@ class Module
$moduleRouteListener->attach($eventManager);
/* Active un layout spécial si la requête est de type AJAX. Valable pour TOUS les modules de l'application. */
$eventManager->getSharedManager()->attach('Zend\Mvc\Controller\AbstractActionController', 'dispatch',
$eventManager->getSharedManager()->attach('Laminas\Mvc\Controller\AbstractActionController', 'dispatch',
function (MvcEvent $e) {
$request = $e->getRequest();
if ($request instanceof HttpRequest && $request->isXmlHttpRequest()) {
......@@ -46,7 +46,7 @@ class Module
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'Laminas\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
......
{
"name": "unicaen/renderer",
"description": "Module de rendu de texte avec templates et macros",
"repositories": [
{
"type": "composer",
"url": "https://gest.unicaen.fr/packagist"
}
],
"require": {
"unicaen/app": "^3.0",
"unicaen/privilege": "dev-master"
},
"autoload": {
"psr-0": {
"name": "unicaen/renderer",
"description": "Module de rendu de texte avec templates et macros",
"repositories": [
{
"type": "composer",
"url": "https://gest.unicaen.fr/packagist"
}
],
"require": {
"unicaen/app": "^5.0",
"unicaen/privilege": "dev-laminas_migration",
"laminas/laminas-dependency-plugin": "^2.1"
},
"classmap": [
"./Module.php"
]
}
"autoload": {
"psr-0": [],
"classmap": [
"./Module.php"
]
}
}
......@@ -6,7 +6,7 @@ use UnicaenRenderer\Provider\Privilege\DocumentcontenuPrivileges;
use UnicaenRenderer\Provider\Privilege\DocumentmacroPrivileges;
use UnicaenRenderer\Provider\Privilege\DocumenttemplatePrivileges;
use UnicaenPrivilege\Guard\PrivilegeController;
use Zend\Router\Http\Literal;
use Laminas\Router\Http\Literal;
return [
'bjyauthorize' => [
......
......@@ -10,8 +10,8 @@ use UnicaenRenderer\Provider\Privilege\DocumentmacroPrivileges;
use UnicaenRenderer\Service\Macro\MacroService;
use UnicaenRenderer\Service\Macro\MacroServiceFactory;
use UnicaenPrivilege\Guard\PrivilegeController;
use Zend\Router\Http\Literal;
use Zend\Router\Http\Segment;
use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;
return [
'bjyauthorize' => [
......
......@@ -9,8 +9,8 @@ use UnicaenRenderer\Service\Rendu\RenduServiceFactory;
use UnicaenRenderer\Provider\Privilege\DocumentcontenuPrivileges;
use UnicaenPrivilege\Guard\PrivilegeController;
use UnicaenRenderer\View\Helper\RenduViewHelper;
use Zend\Router\Http\Literal;
use Zend\Router\Http\Segment;
use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;
return [
'bjyauthorize' => [
......
......@@ -10,8 +10,8 @@ use UnicaenRenderer\Provider\Privilege\DocumenttemplatePrivileges;
use UnicaenRenderer\Service\Template\TemplateService;
use UnicaenRenderer\Service\Template\TemplateServiceFactory;
use UnicaenPrivilege\Guard\PrivilegeController;
use Zend\Router\Http\Literal;
use Zend\Router\Http\Segment;
use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;
return [
'bjyauthorize' => [
......
......@@ -2,8 +2,8 @@
namespace UnicaenRenderer\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class IndexController extends AbstractActionController {
......
......@@ -6,9 +6,9 @@ use Application\Service\Agent\AgentServiceAwareTrait;
use UnicaenRenderer\Entity\Db\Macro;
use UnicaenRenderer\Form\Macro\MacroFormAwareTrait;
use UnicaenRenderer\Service\Macro\MacroServiceAwareTrait;
use Zend\Http\Request;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Laminas\Http\Request;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class MacroController extends AbstractActionController {
use MacroServiceAwareTrait;
......
......@@ -3,9 +3,9 @@
namespace UnicaenRenderer\Controller;
use UnicaenRenderer\Service\Rendu\RenduServiceAwareTrait;
use Zend\Http\Request;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Laminas\Http\Request;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class RenduController extends AbstractActionController {
use RenduServiceAwareTrait;
......
......@@ -6,9 +6,9 @@ use UnicaenRenderer\Entity\Db\Template;
use UnicaenRenderer\Form\Template\TemplateFormAwareTrait;
use UnicaenRenderer\Service\Template\TemplateServiceAwareTrait;
use UnicaenRenderer\Service\Macro\MacroServiceAwareTrait;
use Zend\Http\Request;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Laminas\Http\Request;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class TemplateController extends AbstractActionController {
use TemplateServiceAwareTrait;
......
......@@ -2,7 +2,7 @@
namespace UnicaenRenderer\Entity\Db;
use Zend\Permissions\Acl\Resource\ResourceInterface;
use Laminas\Permissions\Acl\Resource\ResourceInterface;
class Macro implements ResourceInterface
{
......
......@@ -3,7 +3,7 @@
namespace UnicaenRenderer\Entity\Db;
use DateTime;
use Zend\Permissions\Acl\Resource\ResourceInterface;
use Laminas\Permissions\Acl\Resource\ResourceInterface;
class Rendu implements ResourceInterface
{
......
......@@ -2,7 +2,7 @@
namespace UnicaenRenderer\Entity\Db;
use Zend\Permissions\Acl\Resource\ResourceInterface;
use Laminas\Permissions\Acl\Resource\ResourceInterface;
class Template implements ResourceInterface
{
......
......@@ -4,13 +4,13 @@ namespace UnicaenRenderer\Form\Macro;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Macro;
use Zend\Form\Element\Button;
use Zend\Form\Element\Hidden;
use Zend\Form\Element\Text;
use Zend\Form\Element\Textarea;
use Zend\Form\Form;
use Zend\InputFilter\Factory;
use Zend\Validator\Callback;
use Laminas\Form\Element\Button;
use Laminas\Form\Element\Hidden;
use Laminas\Form\Element\Text;
use Laminas\Form\Element\Textarea;
use Laminas\Form\Form;
use Laminas\InputFilter\Factory;
use Laminas\Validator\Callback;
class MacroForm extends Form {
use EntityManagerAwareTrait;
......
......@@ -3,7 +3,7 @@
namespace UnicaenRenderer\Form\Macro;
use UnicaenRenderer\Entity\Db\Macro;
use Zend\Hydrator\HydratorInterface;
use Laminas\Hydrator\HydratorInterface;
class MacroHydrator implements HydratorInterface {
......
......@@ -6,13 +6,13 @@ use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Template;
use UnicaenRenderer\Entity\Db\Macro;
use UnicaenRenderer\Service\Macro\MacroServiceAwareTrait;
use Zend\Form\Element\Button;
use Zend\Form\Element\Hidden;
use Zend\Form\Element\Select;
use Zend\Form\Element\Text;
use Zend\Form\Form;
use Zend\InputFilter\Factory;
use Zend\Validator\Callback;
use Laminas\Form\Element\Button;
use Laminas\Form\Element\Hidden;
use Laminas\Form\Element\Select;
use Laminas\Form\Element\Text;
use Laminas\Form\Form;
use Laminas\InputFilter\Factory;
use Laminas\Validator\Callback;
class TemplateForm extends Form {
use EntityManagerAwareTrait;
......
......@@ -3,7 +3,7 @@
namespace UnicaenRenderer\Form\Template;
use UnicaenRenderer\Entity\Db\Template;
use Zend\Hydrator\HydratorInterface;
use Laminas\Hydrator\HydratorInterface;
class TemplateHydrator implements HydratorInterface {
......
......@@ -8,7 +8,7 @@ use Doctrine\ORM\QueryBuilder;
use UnicaenApp\Exception\RuntimeException;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Macro;
use Zend\Mvc\Controller\AbstractActionController;
use Laminas\Mvc\Controller\AbstractActionController;
class MacroService {
use EntityManagerAwareTrait;
......
......@@ -11,7 +11,7 @@ use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Rendu;
use UnicaenRenderer\Entity\Db\Template;
use UnicaenRenderer\Service\Template\TemplateServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
use Laminas\Mvc\Controller\AbstractActionController;
class RenduService {
use EntityManagerAwareTrait;
......
......@@ -9,7 +9,7 @@ use UnicaenApp\Exception\RuntimeException;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Template;
use UnicaenRenderer\Service\Macro\MacroServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
use Laminas\Mvc\Controller\AbstractActionController;
class TemplateService {
use EntityManagerAwareTrait;
......
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