Skip to content

Commit

Permalink
tweak how autoloaders are called. adjust phpunit bootstrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 24, 2013
1 parent d193986 commit 9d3c3ea
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 37 deletions.
20 changes: 2 additions & 18 deletions artisan
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
Expand All @@ -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';

/*
|--------------------------------------------------------------------------
Expand Down
31 changes: 31 additions & 0 deletions bootstrap/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

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);
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down
20 changes: 2 additions & 18 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
Expand All @@ -20,23 +20,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';

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 9d3c3ea

Please sign in to comment.