Add an "autoload.php" utility script for autoloading in examples and tests.

This commit is contained in:
Daniele Alessandri
2011-11-28 10:19:11 +01:00
parent b7c715a03f
commit a894f470bd
3 changed files with 15 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require __DIR__.'/lib/Predis/Autoloader.php';
Predis\Autoloader::register();
+1 -3
View File
@@ -9,9 +9,7 @@
* file that was distributed with this source code.
*/
require __DIR__.'/../lib/Predis/Autoloader.php';
Predis\Autoloader::register();
require __DIR__.'/../autoload.php';
$single_server = array(
'host' => '127.0.0.1',
+1 -4
View File
@@ -9,8 +9,5 @@
* file that was distributed with this source code.
*/
require __DIR__.'/../lib/Predis/Autoloader.php';
Predis\Autoloader::register();
require __DIR__.'/../autoload.php';
require __DIR__.'/PredisShared.php';