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