Browse Source

Merge remote-tracking branch 'pminnieur/classloader'

Jordi Boggiano 13 years ago
parent
commit
16093fdfeb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Composer/Autoload/ClassLoader.php

+ 3 - 1
src/Composer/Autoload/ClassLoader.php

@@ -83,11 +83,13 @@ class ClassLoader
      * Loads the given class or interface.
      *
      * @param string $class The name of the class
+     * @return Boolean|null True, if loaded
      */
     public function loadClass($class)
     {
         if ($file = $this->findFile($class)) {
             require $file;
+            return true;
         }
     }
 
@@ -134,4 +136,4 @@ class ClassLoader
             }
         }
     }
-}
+}