Commit ccf7552d authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Adaptation Laminas

parent 7af9000b
Pipeline #11536 failed with stage
in 8 seconds
......@@ -2,8 +2,8 @@
namespace UnicaenTbl;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Zend\Mvc\MvcEvent;
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
use Laminas\Mvc\MvcEvent;
/**
*
......
......@@ -8,7 +8,7 @@
}
],
"require" : {
"unicaen/app": "^3.0"
"unicaen/app": "dev-laminas_migration"
},
"require-dev" : {
"phpunit/PHPUnit": "^5.6"
......
......@@ -69,7 +69,7 @@ return [
],
],
'zenddevelopertools' => [
'laminasdevelopertools' => [
'profiler' => [
'collectors' => [
Service\CollectorService::class => Service\CollectorService::class,
......@@ -77,7 +77,7 @@ return [
],
'toolbar' => [
'entries' => [
Service\CollectorService::class => 'zend-developer-tools/toolbar/unicaen-tbl',
Service\CollectorService::class => 'laminas-developer-tools/toolbar/unicaen-tbl',
],
],
],
......@@ -104,8 +104,8 @@ return [
'unicaen-tbl' => __DIR__ . '/../view',
],
'template_map' => [
'zend-developer-tools/toolbar/unicaen-tbl'
=> dirname(__DIR__) . '/view/zend-developer-tools/toolbar/unicaen-tbl.phtml',
'laminas-developer-tools/toolbar/unicaen-tbl'
=> dirname(__DIR__) . '/view/laminas-developer-tools/toolbar/unicaen-tbl.phtml',
],
],
......
......@@ -6,9 +6,9 @@ use UnicaenTbl\Form\Traits\ActualisationFormAwareTrait;
use UnicaenTbl\Service\Traits\QueryGeneratorServiceAwareTrait;
use UnicaenTbl\Service\Traits\SchemaServiceAwareTrait;
use UnicaenTbl\Service\Traits\TableauBordServiceAwareTrait;
use Zend\Http\Request;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\JsonModel;
use Laminas\Http\Request;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\JsonModel;
/**
*
......
......@@ -2,9 +2,9 @@
namespace UnicaenTbl\Form;
use Zend\Form\Form;
use Zend\InputFilter\InputFilterProviderInterface;
use Zend\Stdlib\Hydrator\HydratorInterface;
use Laminas\Form\Form;
use Laminas\InputFilter\InputFilterProviderInterface;
use Laminas\Stdlib\Hydrator\HydratorInterface;
/**
......@@ -48,7 +48,7 @@ class ActualisationForm extends Form implements InputFilterProviderInterface
/**
* Should return an array specification compatible with
* {@link Zend\InputFilter\Factory::createInputFilter()}.
* {@link Laminas\InputFilter\Factory::createInputFilter()}.
*
* @return array
*/
......
......@@ -2,7 +2,7 @@
namespace UnicaenTbl\Options;
use Zend\Stdlib\AbstractOptions;
use Laminas\Stdlib\AbstractOptions;
/**
......
......@@ -3,8 +3,8 @@
namespace UnicaenTbl\Service;
use Serializable;
use Zend\Mvc\MvcEvent;
use ZendDeveloperTools\Collector\CollectorInterface;
use Laminas\Mvc\MvcEvent;
use LaminasDeveloperTools\Collector\CollectorInterface;
/**
* Collecteur de données UnicaenCode
......
......@@ -4,8 +4,8 @@ namespace UnicaenTbl\Service;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenTbl\Entity\TableauBord;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
use Laminas\ServiceManager\ServiceLocatorAwareInterface;
use Laminas\ServiceManager\ServiceLocatorAwareTrait;
/**
* Description of TableauBordService
......
<?php
namespace UnicaenTblTest;
use Zend\Loader\AutoloaderFactory;
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\ServiceManager\ServiceManager;
use Laminas\Loader\AutoloaderFactory;
use Laminas\Mvc\Service\ServiceManagerConfig;
use Laminas\ServiceManager\ServiceManager;
use RuntimeException;
......@@ -61,19 +61,19 @@ class Bootstrap
$zf2Path = ZF2_PATH;
} elseif (is_dir($vendorPath . '/ZF2/library')) {
$zf2Path = $vendorPath . '/ZF2/library';
} elseif (is_dir($vendorPath . '/zendframework/zendframework/library')) {
$zf2Path = $vendorPath . '/zendframework/zendframework/library';
} elseif (is_dir($vendorPath . '/laminas/laminas/library')) {
$zf2Path = $vendorPath . '/laminas/laminas/library';
}
}
if (!$zf2Path) {
throw new RuntimeException('Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.');
throw new RuntimeException('Unable to load Laminas. Run `php composer.phar install` or define a ZF2_PATH environment variable.');
}
include $zf2Path . '/Zend/Loader/AutoloaderFactory.php';
include $zf2Path . '/Laminas/Loader/AutoloaderFactory.php';
AutoloaderFactory::factory(array(
'Zend\Loader\StandardAutoloader' => array(
'autoregister_zf' => true,
'Laminas\Loader\StandardAutoloader' => array(
'autoregister_laminas' => true,
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/' . __NAMESPACE__,
),
......
......@@ -15,4 +15,4 @@ $testConfig = array(
),
);
return \Zend\Stdlib\ArrayUtils::merge($appConfig, $testConfig);
return \Laminas\Stdlib\ArrayUtils::merge($appConfig, $testConfig);
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