import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id$
|
||||
* @version $Id: Repository.php 16972 2009-07-22 18:44:24Z ralph $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -256,6 +256,9 @@ class Zend_Tool_Framework_Provider_Repository
|
||||
{
|
||||
$className = get_class($provider);
|
||||
$providerName = substr($className, strrpos($className, '_')+1);
|
||||
if (substr($providerName, -8) == 'Provider') {
|
||||
$providerName = substr($providerName, 0, strlen($providerName)-8);
|
||||
}
|
||||
return $providerName;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user