File tree 8 files changed +33
-30
lines changed
8 files changed +33
-30
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ CONTRIBUTING
3
3
To contribute, you can send pull requests with :
4
4
5
5
- Typo fix.
6
- - Use [ Zend Coding Standard] ( https://github.com/zendframework/zend -coding-standard ) .
6
+ - Use [ Laminas Coding Standard] ( https://github.com/laminas/laminas -coding-standard ) .
7
7
- patch(es) need new/updated test(s).
8
8
- new feature(s) need test(s).
9
9
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ RedirectHandlerModule
7
7
[ ![ Coverage Status] ( https://coveralls.io/repos/samsonasik/RedirectHandlerModule/badge.svg?branch=master )] ( https://coveralls.io/r/samsonasik/RedirectHandlerModule )
8
8
[ ![ Downloads] ( https://poser.pugx.org/samsonasik/redirect-handler-module/downloads )] ( https://packagist.org/packages/samsonasik/redirect-handler-module )
9
9
10
- * RedirectHandlerModule* is a module for handling redirect when the given url to redirect plugin is not registered in your ZF application. It simply override existing ZF redirect plugin, so we can just use it.
10
+ * RedirectHandlerModule* is a module for handling redirect when the given url to redirect plugin is not registered in your Laminas application. It simply override existing Laminas redirect plugin, so we can just use it.
11
11
12
- > This is README for version ^2.0 which only support ZF3 with php ^7.1.
12
+ > This is README for version ^3.0 which only support Laminas 3 with php ^7.1.
13
+
14
+ > For version 2, you can read at [ version 2 readme] ( https://github.com/samsonasik/RedirectHandlerModule/tree/2.x.x ) which still support ZF3 with php ^7.1 support.
13
15
14
16
> For version 1, you can read at [ version 1 readme] ( https://github.com/samsonasik/RedirectHandlerModule/tree/1.x.x ) which still support ZF2 with php ^5.6|^7.0 support.
15
17
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " samsonasik/redirect-handler-module" ,
3
3
"type" : " library" ,
4
- "description" : " ZF2 module to for Url Redirect handling" ,
4
+ "description" : " Laminas module to for Url Redirect handling" ,
5
5
"keywords" : [
6
6
" redirect" ,
7
- " zf2 " ,
8
- " zf3 " ,
7
+ " laminas2 " ,
8
+ " laminas3 " ,
9
9
" handler"
10
10
],
11
11
"homepage" : " https://github.com/samsonasik/RedirectHandlerModule" ,
20
20
],
21
21
"require" : {
22
22
"php" : " ^7.1" ,
23
- "zendframework/zend-mvc" : " ^3.0" ,
24
- "zendframework/zend-servicemanager" : " ^3.3.0"
23
+ "laminas/laminas-mvc" : " ^3.0" ,
24
+ "laminas/laminas-servicemanager" : " ^3.3.0" ,
25
+ "laminas/laminas-dependency-plugin" : " ^1.0"
25
26
},
26
27
"require-dev" : {
27
28
"php-coveralls/php-coveralls" : " ^2.1" ,
28
29
"phpunit/phpunit" : " ^7.0" ,
29
- "zendframework/zend -coding-standard" : " ^1.0"
30
+ "laminas/laminas -coding-standard" : " ^1.0"
30
31
},
31
32
"config" : {
32
33
"process-timeout" : 5000
Original file line number Diff line number Diff line change 20
20
return [
21
21
'controller_plugins ' => [
22
22
'factories ' => [
23
- 'redirect ' => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
24
- 'Redirect ' => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
25
- \Zend \Mvc \Controller \Plugin \Redirect::class => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
26
- 'zendmvccontrollerpluginredirect ' => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
23
+ 'redirect ' => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
24
+ 'Redirect ' => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
25
+ \Laminas \Mvc \Controller \Plugin \Redirect::class => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
26
+ 'laminasmvccontrollerpluginredirect ' => 'RedirectHandlerModule\Controller\Plugin\RedirectFactory ' ,
27
27
],
28
28
],
29
29
];
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<ruleset name =" Zend Framework Coding Standard" >
3
- <rule ref =" ./vendor/zendframework/zend -coding-standard/ruleset.xml" />
3
+ <rule ref =" ./vendor/laminas/laminas -coding-standard/ruleset.xml" />
4
4
5
5
<!-- Paths to check -->
6
6
<file >src</file >
Original file line number Diff line number Diff line change 21
21
22
22
namespace RedirectHandlerModule \Controller \Plugin ;
23
23
24
- use Zend \EventManager \EventManagerAwareInterface ;
25
- use Zend \EventManager \EventManagerAwareTrait ;
26
- use Zend \Mvc \Controller \ControllerManager ;
27
- use Zend \Mvc \Controller \Plugin \Redirect as BaseRedirect ;
28
- use Zend \Uri \Uri ;
24
+ use Laminas \EventManager \EventManagerAwareInterface ;
25
+ use Laminas \EventManager \EventManagerAwareTrait ;
26
+ use Laminas \Mvc \Controller \ControllerManager ;
27
+ use Laminas \Mvc \Controller \Plugin \Redirect as BaseRedirect ;
28
+ use Laminas \Uri \Uri ;
29
29
30
30
class Redirect extends BaseRedirect implements EventManagerAwareInterface
31
31
{
@@ -54,7 +54,7 @@ public function __construct(
54
54
*
55
55
* @param string $url
56
56
*
57
- * @return \Zend \Http\PhpEnvironment\Response
57
+ * @return \Laminas \Http\PhpEnvironment\Response
58
58
*/
59
59
public function toUrl ($ url )
60
60
{
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function testInvoke($config)
78
78
{
79
79
$ services = $ this ->prophesize (ContainerInterface::class);
80
80
81
- $ controllerManager = $ this ->prophesize ('Zend \Mvc\Controller\ControllerManager ' );
81
+ $ controllerManager = $ this ->prophesize ('Laminas \Mvc\Controller\ControllerManager ' );
82
82
$ services ->get ('ControllerManager ' )->willReturn ($ controllerManager )
83
83
->shouldBeCalled ();
84
84
Original file line number Diff line number Diff line change 21
21
22
22
use PHPUnit \Framework \TestCase ;
23
23
use RedirectHandlerModule \Controller \Plugin \Redirect ;
24
- use Zend \EventManager \EventManager ;
25
- use Zend \Http \Headers ;
26
- use Zend \Http \PhpEnvironment \Request ;
27
- use Zend \Http \PhpEnvironment \Response ;
28
- use Zend \Mvc \Controller \AbstractActionController ;
29
- use Zend \Mvc \Controller \ControllerManager ;
30
- use Zend \Mvc \MvcEvent ;
31
- use Zend \Router \Http \TreeRouteStack ;
32
- use Zend \Router \RouteMatch ;
24
+ use Laminas \EventManager \EventManager ;
25
+ use Laminas \Http \Headers ;
26
+ use Laminas \Http \PhpEnvironment \Request ;
27
+ use Laminas \Http \PhpEnvironment \Response ;
28
+ use Laminas \Mvc \Controller \AbstractActionController ;
29
+ use Laminas \Mvc \Controller \ControllerManager ;
30
+ use Laminas \Mvc \MvcEvent ;
31
+ use Laminas \Router \Http \TreeRouteStack ;
32
+ use Laminas \Router \RouteMatch ;
33
33
34
34
class RedirectTest extends TestCase
35
35
{
You can’t perform that action at this time.
0 commit comments