Permalink
Browse files

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

…tests.
  • Loading branch information...
1 parent b7c715a commit a894f470bd002eba13f4c43e08195a4ea355ff82 @nrk committed Nov 28, 2011
Showing with 15 additions and 7 deletions.
  1. +13 −0 autoload.php
  2. +1 −3 examples/SharedConfigurations.php
  3. +1 −4 test/bootstrap.php
View
@@ -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',
View
@@ -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';

0 comments on commit a894f47

Please sign in to comment.