Fix autoloader to work with helper classes on linux
authorgggeek <giunta.gaetano@gmail.com>
Thu, 2 Apr 2015 23:48:56 +0000 (00:48 +0100)
committergggeek <giunta.gaetano@gmail.com>
Thu, 2 Apr 2015 23:48:56 +0000 (00:48 +0100)
src/Autoloader.php

index b03b1cb..77ba30f 100644 (file)
@@ -29,7 +29,7 @@ class Autoloader
             return;
         }
 
-        if (is_file($file = __DIR__ . str_replace('PhpXmlRpc\\', '/', $class).'.php')) {
+        if (is_file($file = __DIR__ . str_replace(array('PhpXmlRpc\\', '\\'), '/', $class).'.php')) {
             require $file;
         }
     }