Skip to content

Commit

Permalink
Zend\Loader\AutoloaderInterface
Browse files Browse the repository at this point in the history
- s/AutoloaderInterface/Autoloadable/
- Corrected code and tests to reflect the above
  • Loading branch information
weierophinney committed Jul 7, 2010
1 parent d6d87b9 commit 7f7bf8b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface AutoloaderInterface
interface Autoloadable
{
public function autoload($class);
}
2 changes: 1 addition & 1 deletion library/Zend/Loader/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function autoload($class)
$self = self::getInstance();

foreach ($self->getClassAutoloaders($class) as $autoloader) {
if ($autoloader instanceof AutoloaderInterface) {
if ($autoloader instanceof Autoloadable) {
if ($autoloader->autoload($class)) {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Loader/ResourceAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
*
* @uses Zend_Loader
* @uses Zend_Loader_Autoloader
* @uses Zend_Loader_Autoloader_Interface
* @uses Zend_Loader_Autoloadable
* @uses Zend_Loader_Exception
* @package Zend_Loader
* @subpackage Autoloader
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class ResourceAutoloader implements AutoloaderInterface
class ResourceAutoloader implements Autoloadable
{
/**
* @var string Base path to resource classes
Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Loader/AutoloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function testAutoload($class)
return $class;
}

class TestAutoloader implements \Zend\Loader\AutoloaderInterface
class TestAutoloader implements \Zend\Loader\Autoloadable
{
public function autoload($class)
{
Expand Down
6 changes: 3 additions & 3 deletions working/PHPNamespacer-MappedClasses.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8035,10 +8035,10 @@
<mappedClass>
<originalRelativeFilePath>Zend/Loader/Autoloader/Interface.php</originalRelativeFilePath>
<originalClassName>Zend_Loader_Autoloader_Interface</originalClassName>
<newRelativeFilePath>Zend/Loader/AutoloaderInterface.php</newRelativeFilePath>
<newRelativeFilePath>Zend/Loader/Autoloadable.php</newRelativeFilePath>
<newNamespace>Zend\Loader</newNamespace>
<newClassName>AutoloaderInterface</newClassName>
<newFullyQualifiedName>Zend\Loader\AutoloaderInterface</newFullyQualifiedName>
<newClassName>Autoloadable</newClassName>
<newFullyQualifiedName>Zend\Loader\Autoloadable</newFullyQualifiedName>
</mappedClass>
<mappedClass>
<originalRelativeFilePath>Zend/Loader/Autoloader/Resource.php</originalRelativeFilePath>
Expand Down

0 comments on commit 7f7bf8b

Please sign in to comment.