Hi all,
Working with Zend_Db_Profiler_Firebug and CLI interface I've noticed
that Zend_Wildfire_Channel_HttpHeaders does not check whether we work
with HTTP request or not. I assumed that it will not try to send debug
messages to firebug if connection was not established over HTTP.
In my application there are two ways of initializing it - one over
HTTP (standard) and in this option I do normal bootstrap
($application->boostrap()->run()), and another one in CLI interface,
where I do my bootstrap selectively
($application->bootstrap(array('list', 'of', 'items', 'to',
'bootstrap'))). In the second one I use Zend_Controller_Request_Simple
and dispatch front controller manually ($front->setRequest(),
$front->setResponse(), ..., $front->dispatch()).
When I execute some action with second approach I get fatal error:
Fatal error: Call to undefined method
Zend_Controller_Request_Simple::getHeader() in
(...)/Zend/Wildfire/Channel/HttpHeaders.php on line 276
I put a quick workaround in method isReady(), but it does not seem to
be beautiful:
if(false === $this->getRequest() instanceof
Zend_Controller_Request_Http){
return false;
}
I use ZF 1.10.8.
Any help, ideas for better workaround?
Regads,
Bartosz