ZF-10290: Zend Tool incorrectly requests 'Log' Boostrap resource in generated ErrorController for new project

Issue Type: Bug Created: 2010-08-10T15:15:11.000+0000 Last Updated: 2010-08-21T12:14:52.000+0000 Status: Resolved Fix version(s): - 1.10.8 (25/Aug/10)

Reporter: Barrett Conrad (barrettconrad) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments:


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.


Posted by Ralph Schindler (ralph) on 2010-08-21T12:14:51.000+0000

Fixed in trunk at r22875, in 1.10 branch at r22876

Have you found an issue?

See the Overview section for more details.


© 2006-2021 by Zend by Perforce. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.