In Zend Framework ,Zend_Application object has a bootstrap object to bootstrap or configure
the components.Bootstrap class in turn have access to zend_application object to access configuration parameters.
My Question is that what kind of pattern is this or is it a code smell because of circular dependency.
In Zend Framework ,Zend_Application object has a bootstrap object to bootstrap or configure the
Share
Zend Framework 1 is bloated, that’s for sure.
The reason for that
$_applicationproperty representing a bi-directional relation is due to the module’s independent bootstrap files.It’s strange, I think, because when dealing with modules, instead of having the
Zend_Aplicationset you’ll have the main bootstrap instead:There’s a lot of code smell too:
The boostrap file need the options, so instead of asking for the options, it expects the Zend_Application to then get the options:
It seems like they simply ignore the type of interface expected by the setApplication() method and it can be one of the followings:
I would give up trying to understand this mess and switch to ZF 2, though 😉