zendframework / ZFTool

Utility module for maintaining modular Zend Framework 2 applications.
187 stars 102 forks source link

zftool config list seems to be executing MVC code... #138

Open bitwombat opened 7 years ago

bitwombat commented 7 years ago

I ran zftool config list on my app and got this:

PHP Fatal error: Call to undefined method Zend\Console\Response::setStatusCode() in /data/www/che-app/vendor/digitaledgeit/zf2-authorisation-module/src/DeitAuthorisationModule/View/ViewStrategy.php

The problem seems to be that zftool is a) executing all sorts of code and b) in a CLI environment which means this method is seeing a Zend\Console\Response object, instead of its usual Zend\Http\Response

Maybe there's some sort of error, violation or smell in my design? Or is this a zftool bug?