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
originally i submitted issue at
ZendSkeletonApplication
repo https://github.com/zendframework/ZendSkeletonApplication/issues/433 , which seems should be hereWhen 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 thezend-stratigility
to require with command:and it installed the
zend-stratigility
3. After it installed, I got the following error:So, I downgraded the version to v2 with command:
And it works.
How about support zend-stratigility v3 as well?