Details
-
Type:
Improvement
-
Status:
Postponed
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0.2
-
Fix Version/s: Next Major Release
-
Component/s: Zend_Controller
-
Labels:None
-
Fix Version Priority:Should Have
Description
It's description of Matthew Weier O'Phinney:
"Let's say you have 3 plugins, one registered with no stackIndex, one
with a stackIndex of 99, and another with one of 50. If you register
another, it will get a stackIndex of 3, when it should get a stackIndex
of 1. "
Zend_Controller_Plugin_Broker
public function registerPlugin(Zend_Controller_Plugin_Abstract $plugin, $stackIndex = null) { //code } else { $stackIndex = count($this->_plugins); // why? while (isset($this->_plugins[$stackIndex])) { ++$stackIndex; } $this->_plugins[$stackIndex] = $plugin; } //code }
Scheduling for 1.0.3