ZF-9111: Break in Resolving Plugin Resource Name
Description
Add break on Zend_Application_Bootstrap_BootstrapAbstract::_resolvePluginResourceName($resource) foreach loop:
protected function _resolvePluginResourceName($resource)
{
if (isset($resource->_explicitType)) {
$pluginName = $resource->_explicitType;
} else {
$className = get_class($resource);
$pluginName = $className;
$loader = $this->getPluginLoader();
foreach ($loader->getPaths() as $prefix => $paths) {
if (0 === strpos($className, $prefix)) {
$pluginName = substr($className, strlen($prefix));
$pluginName = trim($pluginName, '_');
break; // break when $prefix found
}
}
}
$pluginName = strtolower($pluginName);
return $pluginName;
}
Comments
Posted by Marc Hodgins (mjh_ca) on 2010-10-26T02:34:58.000+0000
Fixed by Matthew in r20985, made it in to 1.10.1 release. Marking as resolved.