zendframework / zend-mvc

Mvc component from Zend Framework
BSD 3-Clause "New" or "Revised" License
105 stars 90 forks source link

support zend-stratigility 3? #283

Open samsonasik opened 6 years ago

samsonasik commented 6 years ago

originally i submitted issue at ZendSkeletonApplication repo https://github.com/zendframework/ZendSkeletonApplication/issues/433 , which seems should be here

When I tried to use middleware in zend-mvc 3, it require to install zend-stratigility as it seems it no longer required, so I add the zend-stratigility to require with command:

composer require zendframework/zend-stratigility

and it installed the zend-stratigility 3. After it installed, I got the following error:

( ! ) Fatal error: Uncaught Error: Call to undefined method Zend\Stratigility\MiddlewarePipe::setResponsePrototype() in /Users/samsonasik/www/zf-mvc3/vendor/zendframework/zend-mvc/src/MiddlewareListener.php on line 134
( ! ) Error: Call to undefined method Zend\Stratigility\MiddlewarePipe::setResponsePrototype() in /Users/samsonasik/www/zf-mvc3/vendor/zendframework/zend-mvc/src/MiddlewareListener.php on line 134

So, I downgraded the version to v2 with command:

composer require zendframework/zend-stratigility:^2.0

And it works.

How about support zend-stratigility v3 as well?

froschdesign commented 6 years ago

Related to #259

Xerkus commented 5 years ago

Should be resolved as part of #308

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-mvc; a new issue has been opened at https://github.com/laminas/laminas-mvc/issues/13.