diff --git a/configsample.inc.php b/configsample.inc.php
index 7c97a73a26422d7f751303dbd1e81375f17b7d26..179af4db40b157561987ee037f6bd28a260cf359 100644
--- a/configsample.inc.php
+++ b/configsample.inc.php
@@ -1,14 +1,11 @@
 <?php
 
-function __autoload($class)
+function autoload($class)
 {
-    $file = dirname(__FILE__).'/src/'.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';
-    if (file_exists($file)) {
-        require $file;
-        return true;
-    }
-    return false;
+    $class = str_replace(array('_', '\\'), '/', $class);
+    include $class . '.php';
 }
 
-spl_autoload_register('__autoload');
+spl_autoload_register('autoload');
 
+set_include_path(__DIR__ . '/src' . PATH_SEPARATOR . __DIR__ . '/vendor/php');