autoload.php 1.05 KB
Newer Older
1 2
<?php

3 4
define('LARAVEL_START', microtime(true));

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
|--------------------------------------------------------------------------
| 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';

/*
|--------------------------------------------------------------------------
Taylor Otwell committed
21
| Include The Compiled Class File
22 23
|--------------------------------------------------------------------------
|
Taylor Otwell committed
24 25 26
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
27 28 29
|
*/

30
$compiledPath = __DIR__.'/cache/compiled.php';
31

Taylor Otwell committed
32 33
if (file_exists($compiledPath)) {
    require $compiledPath;
34
}