ZF-7903: Resource method's code example don't match the API behaviour of Zend_Application_Resource_ResourceAbstract

Issue Type: Docs: Problem Created: 2009-09-20T21:22:55.000+0000 Last Updated: 2010-01-21T09:16:58.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Eriksen Costa (eriksencosta) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:


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

<pre class="highlight">
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(). 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


Posted by Matthew Weier O'Phinney (matthew) on 2010-01-21T09:16:58.000+0000

Fixed in trunk and 1.10 release branch

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

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