diff --git a/autoload.php b/autoload.php new file mode 100644 index 00000000..cb0a37b4 --- /dev/null +++ b/autoload.php @@ -0,0 +1,13 @@ + + * + * 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(); diff --git a/examples/SharedConfigurations.php b/examples/SharedConfigurations.php index 5f568ae9..20ca6b5b 100644 --- a/examples/SharedConfigurations.php +++ b/examples/SharedConfigurations.php @@ -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', diff --git a/test/bootstrap.php b/test/bootstrap.php index 48078693..3566dd55 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -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';