Zend Framework

Zend Tool incorrectly requests 'Log' Boostrap resource in generated ErrorController for new project

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.3
  • Fix Version/s: 1.10.8
  • Component/s: Zend_Tool
  • Labels:
    None

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.

Activity

Hide
Ralph Schindler added a comment -

Fixed in trunk at r22875, in 1.10 branch at r22876

Show
Ralph Schindler added a comment - Fixed in trunk at r22875, in 1.10 branch at r22876

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: