prolic/HumusStreamResponseSender — pull request #15 by scouragier (2013-07-20 11:20:56+00:00)
Title: Compatibility with doctrine-module in cli

When using the HumusStreamResponse controller plugin with range support, running the doctrine-module command in cli, return the following error :

PHP Catchable fatal error: Argument 1 passed to HumusStreamResponseSender\StreamResponseSender::setRequest() must be an instance of Zend\Http\Request, instance of Zend\Console\Request given, called in /Users/seb/Sites/mouvmed/vendor/prolic/humus-stream-response-sender/src/HumusStreamResponseSender/StreamResponseSenderFactory.php on line 46 and defined in /Users/seb/Sites/mouvmed/vendor/prolic/humus-stream-response-sender/src/HumusStreamResponseSender/StreamResponseSender.php on line 100

Zend\Http\Request and Zend\Console\Request both implements Zend\Stdlib\Message. So, the setRequest method now accept Zend\Stdlib\Message type instead of Zend\Http\Request.