4 |--------------------------------------------------------------------------
5 | Create The Application
6 |--------------------------------------------------------------------------
8 | The first thing we will do is create a new Laravel application instance
9 | which serves as the "glue" for all the components of Laravel, and is
10 | the IoC container for the system binding all of the various parts.
14 $app = new \BookStack\App\Application(
19 |--------------------------------------------------------------------------
20 | Bind Important Interfaces
21 |--------------------------------------------------------------------------
23 | Next, we need to bind some important interfaces into the container so
24 | we will be able to resolve them when needed. The kernels serve the
25 | incoming requests to this application from both the web and CLI.
30 Illuminate\Contracts\Http\Kernel::class,
31 BookStack\Http\Kernel::class
35 Illuminate\Contracts\Console\Kernel::class,
36 BookStack\Console\Kernel::class
40 Illuminate\Contracts\Debug\ExceptionHandler::class,
41 BookStack\Exceptions\Handler::class
45 |--------------------------------------------------------------------------
46 | Return The Application
47 |--------------------------------------------------------------------------
49 | This script returns the application instance. The instance is given to
50 | the calling script so we can separate the building of the instances
51 | from the actual running of the application and sending responses.