Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
import
Commits
4b1533e9
Commit
4b1533e9
authored
Nov 23, 2021
by
Laurent Lécluse
Browse files
Migration Zend => Laminas
parent
311d922d
Pipeline
#11546
passed with stage
in 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Module.php
View file @
4b1533e9
...
...
@@ -2,10 +2,10 @@
namespace
UnicaenImport
;
use
Zend
\ModuleManager\Feature\ConfigProviderInterface
;
use
Zend
\ModuleManager\Feature\ConsoleUsageProviderInterface
;
use
Zend
\Console\Adapter\AdapterInterface
as
ConsoleAdapterInterface
;
use
Zend
\Mvc\MvcEvent
;
use
Laminas
\ModuleManager\Feature\ConfigProviderInterface
;
use
Laminas
\ModuleManager\Feature\ConsoleUsageProviderInterface
;
use
Laminas
\Console\Adapter\AdapterInterface
as
ConsoleAdapterInterface
;
use
Laminas
\Mvc\MvcEvent
;
/**
*
...
...
tests/Bootstrap.php
View file @
4b1533e9
<?php
namespace
UnicaenImportTest
;
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,8 +61,8 @@ 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'
;
}
}
...
...
@@ -70,9 +70,9 @@ class Bootstrap
throw
new
RuntimeException
(
'Unable to load ZF2. 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
(
'
Laminas
\Loader\StandardAutoloader'
=>
array
(
'autoregister_zf'
=>
true
,
'namespaces'
=>
array
(
__NAMESPACE__
=>
__DIR__
.
'/'
.
__NAMESPACE__
,
...
...
tests/config/application.config.php
View file @
4b1533e9
...
...
@@ -15,4 +15,4 @@ $testConfig = array(
),
);
return
\
Zend
\Stdlib\ArrayUtils
::
merge
(
$appConfig
,
$testConfig
);
return
\
Laminas
\Stdlib\ArrayUtils
::
merge
(
$appConfig
,
$testConfig
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment