Zend Framework

Resource method's code example don't match the API behaviour of Zend_Application_Resource_ResourceAbstract

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Application
  • Labels:
    None

Description

In the reference guide of Zend_Application in the examples section, I found the following snippet:

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initRequest(array $options = array())
    {
        ...
    }
}

I was trying to find the utility of $options, since it is not passed by the calls to bootstrap() and bootstrap<name>(). Also, in the snippet, the $options array isn't used.

Reading Zend_Application_Bootstrap_BootstrapAbstract, the _init method isn't called with additional arguments. This can confuse some people, specially if trying the overloaded way.

As a hint, look the following methods of Zend_Application_Bootstrap_BootstrapAbstract:

  • __call
  • bootstrap
  • _bootstrap
  • _executeResource

Activity

Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk and 1.10 release branch

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk and 1.10 release branch

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: