Zend Framework

Passing resource/resources through Zend_Application bootstrap() wrapped method to the bootstrap() method of Zend_Application_Bootstrap_BootstrapAbstract

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.0
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Application
  • Labels:
    None

Description

Right now if you only want to instantiate specific resources in the bootstrap, you're required to do this (after instantiating a Zend_Application object):

$application->getBootstrap()->bootstrap('resource');

The following won't work:

$application->bootstrap('resource');

This is because the bootstrap() wrapper of Zend_Application doesn't proxy the arguments to Zend_Application_Bootstrap_BootstrapAbstract.

I suggest that the the implementation of the bootstrap() method in Zend_Application is changed so that doing this is possible.

Activity

Hide
Satoru Yoshida added a comment -

set component and auto reassign

Show
Satoru Yoshida added a comment - set component and auto reassign
Hide
Keith Pope added a comment -

Adding patch for this

Show
Keith Pope added a comment - Adding patch for this
Hide
Matthew Weier O'Phinney added a comment -

Patch applied in trunk and 1.9 release branch – thanks!

Show
Matthew Weier O'Phinney added a comment - Patch applied in trunk and 1.9 release branch – thanks!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: