0
|
1 |
<?php |
|
2 |
|
|
3 |
define('LARAVEL_START', microtime(true)); |
|
4 |
|
|
5 |
/* |
|
6 |
|-------------------------------------------------------------------------- |
|
7 |
| Register The Composer Auto Loader |
|
8 |
|-------------------------------------------------------------------------- |
|
9 |
| |
|
10 |
| Composer provides a convenient, automatically generated class loader |
|
11 |
| for our application. We just need to utilize it! We'll require it |
|
12 |
| into the script here so that we do not have to worry about the |
|
13 |
| loading of any our classes "manually". Feels great to relax. |
|
14 |
| |
|
15 |
*/ |
|
16 |
|
|
17 |
require __DIR__.'/../vendor/autoload.php'; |
|
18 |
|
|
19 |
/* |
|
20 |
|-------------------------------------------------------------------------- |
|
21 |
| Include The Compiled Class File |
|
22 |
|-------------------------------------------------------------------------- |
|
23 |
| |
|
24 |
| To dramatically increase your application's performance, you may use a |
|
25 |
| compiled class file which contains all of the classes commonly used |
|
26 |
| by a request. The Artisan "optimize" is used to create this file. |
|
27 |
| |
|
28 |
*/ |
|
29 |
|
|
30 |
$compiledPath = __DIR__.'/cache/compiled.php'; |
|
31 |
|
|
32 |
if (file_exists($compiledPath)) { |
|
33 |
require $compiledPath; |
|
34 |
} |