Use the new Predis\Autoloader class for tests and examples.

This commit is contained in:
Daniele Alessandri
2011-10-02 12:07:52 +02:00
parent 04b8a8f75c
commit 5e41657363
2 changed files with 6 additions and 15 deletions
+3 -7
View File
@@ -1,12 +1,8 @@
<?php
spl_autoload_register(function($class) {
$file = __DIR__.'/../lib/'.strtr($class, '\\', '/').'.php';
if (file_exists($file)) {
require $file;
return true;
}
});
require __DIR__.'/../lib/Predis/Autoloader.php';
Predis\Autoloader::register();
$single_server = array(
'host' => '127.0.0.1',