File tree 3 files changed +22
-7
lines changed
3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 6
6
- 7.1
7
7
8
8
matrix :
9
+ include :
10
+ - php : 5.6
11
+ env : ZF_VERSION=2
12
+ - php : 7.0
13
+ env : ZF_VERSION=2
14
+ - php : 7.1
15
+ env : ZF_VERSION=2
9
16
fast_finish : true
10
17
11
18
before_install :
12
19
- phpenv config-rm xdebug.ini
20
+ - if [ "$ZF_VERSION" = "2" ]; then sed 's/ | ^3.0//g' composer.json > composer_v27.json; rm composer.json; mv composer_v27.json composer.json; fi
13
21
14
22
install :
15
23
- composer install --no-progress --no-interaction --prefer-dist --no-suggest
Original file line number Diff line number Diff line change 10
10
},
11
11
"require-dev" : {
12
12
"phpunit/phpunit" : " ^5.0 | ^6.0" ,
13
- "zendframework/zend-mvc" : " ^2.0 | ^3.0"
13
+ "zendframework/zend-mvc" : " ^2.0 | ^3.0" ,
14
+ "zendframework/zend-view" : " ^2.0" ,
15
+ "zendframework/zend-serializer" : " ^2.0" ,
16
+ "zendframework/zend-log" : " ^2.0" ,
17
+ "zendframework/zend-i18n" : " ^2.0" ,
18
+ "zendframework/zend-console" : " ^2.0"
14
19
},
15
20
"authors" : [
16
21
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- return [
4
- 'modules ' => [
5
- ' Go\ZF2\GoAopModule ' ,
3
+ $ modules = [
4
+ 'Go\ZF2\GoAopModule ' ,
5
+ ];
6
6
7
- // Required to initialize application
8
- 'Zend\Router ' ,
9
- ],
7
+ if ( class_exists ( ' Zend\Router\Module ' )) {
8
+ $ modules [] = 'Zend\Router ' ;
9
+ }
10
10
11
+ return [
12
+ 'modules ' => $ modules ,
11
13
'module_listener_options ' => [
12
14
'module_paths ' => [
13
15
__DIR__ . '/../../vendor ' ,
You can’t perform that action at this time.
0 commit comments