From 9d3c3ea0381d2071a77a8f1dd2890bae665c6400 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 23 Jan 2013 23:33:47 -0600 Subject: [PATCH] tweak how autoloaders are called. adjust phpunit bootstrap. --- artisan | 20 ++------------------ bootstrap/autoload.php | 31 +++++++++++++++++++++++++++++++ phpunit.xml | 2 +- public/index.php | 20 ++------------------ 4 files changed, 36 insertions(+), 37 deletions(-) create mode 100644 bootstrap/autoload.php diff --git a/artisan b/artisan index 14ccfd6fe..a70a6c64f 100644 --- a/artisan +++ b/artisan @@ -3,7 +3,7 @@ /* |-------------------------------------------------------------------------- -| Register The Composer Auto Loader +| Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader @@ -13,23 +13,7 @@ | */ -require __DIR__.'/vendor/autoload.php'; - -/* -|-------------------------------------------------------------------------- -| Register The Workbench Loaders -|-------------------------------------------------------------------------- -| -| The Laravel workbench provides a convenient place to develop packages -| when working locally. However we will need to load in the Composer -| auto-load files for the packages so that these can be used here. -| -*/ - -if (is_dir($workbench = __DIR__.'/workbench')) -{ - Illuminate\Workbench\Starter::start($workbench); -} +require __DIR__.'/bootstrap/autoload.php'; /* |-------------------------------------------------------------------------- diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php new file mode 100644 index 000000000..f6adac712 --- /dev/null +++ b/bootstrap/autoload.php @@ -0,0 +1,31 @@ +