From 4242a05a0ec4fd9221780a0c46ded3aa17caa1cd Mon Sep 17 00:00:00 2001 From: Pierre Minnieur Date: Wed, 21 Dec 2011 11:50:24 +0100 Subject: [PATCH] added Boolean return values for loadClass() method --- src/Composer/Autoload/ClassLoader.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Composer/Autoload/ClassLoader.php b/src/Composer/Autoload/ClassLoader.php index 2ec3bde2a..fb1219577 100644 --- a/src/Composer/Autoload/ClassLoader.php +++ b/src/Composer/Autoload/ClassLoader.php @@ -83,12 +83,16 @@ class ClassLoader * Loads the given class or interface. * * @param string $class The name of the class + * @return Boolean True, if loaded */ public function loadClass($class) { if ($file = $this->findFile($class)) { require $file; + return true; } + + return false; } /** @@ -134,4 +138,4 @@ class ClassLoader } } } -} \ No newline at end of file +}