mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Add an "autoload.php" utility script for autoloading in examples and tests.
This commit is contained in:
@@ -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();
|
||||
@@ -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
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user