ZF-7903: Resource method's code example don't match the API behaviour of Zend_Application_Resource_ResourceAbstract
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()}}. 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}}
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2010-01-21T09:16:58.000+0000
Fixed in trunk and 1.10 release branch