]> BookStack Code Mirror - bookstack/blob - bootstrap/autoload.php
Removes some unused code.
[bookstack] / bootstrap / autoload.php
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__.'/../app/helpers.php';
18 require __DIR__.'/../vendor/autoload.php';
19
20 /*
21 |--------------------------------------------------------------------------
22 | Include The Compiled Class File
23 |--------------------------------------------------------------------------
24 |
25 | To dramatically increase your application's performance, you may use a
26 | compiled class file which contains all of the classes commonly used
27 | by a request. The Artisan "optimize" is used to create this file.
28 |
29 */
30
31 $compiledPath = __DIR__.'/cache/compiled.php';
32
33 if (file_exists($compiledPath)) {
34     require $compiledPath;
35 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.