ZF-10290: Zend Tool incorrectly requests 'Log' Boostrap resource in generated ErrorController for new project
Description
Zend Tool, from both the command line and Zend Studio (7.2.1.v20100704), generates the following method in the ErrorController of a new project:
public function getLog() { $bootstrap = $this->getInvokeArg('bootstrap'); if (!$bootstrap->hasPluginResource('Log')) { return false; } $log = $bootstrap->getResource('Log'); return $log; }
Line 4 should call hasResource instead of hasPluginResource.
Comments
Posted by Ralph Schindler (ralph) on 2010-08-21T12:14:51.000+0000
Fixed in trunk at r22875, in 1.10 branch at r22876