Projekt

Obecné

Profil

Stáhnout (1.66 KB) Statistiky
| Větev: | Tag: | Revize:
1
<?php
2

    
3
/*
4
|--------------------------------------------------------------------------
5
| Create The Application
6
|--------------------------------------------------------------------------
7
|
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.
11
|
12
*/
13

    
14
$app = new Illuminate\Foundation\Application(
15
    $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
16
);
17

    
18
$app->bind('path.public', function() { return base_path().'/public_html'; });
19

    
20
/*
21
|--------------------------------------------------------------------------
22
| Bind Important Interfaces
23
|--------------------------------------------------------------------------
24
|
25
| Next, we need to bind some important interfaces into the container so
26
| we will be able to resolve them when needed. The kernels serve the
27
| incoming requests to this application from both the web and CLI.
28
|
29
*/
30

    
31
$app->singleton(
32
    Illuminate\Contracts\Http\Kernel::class,
33
    App\Http\Kernel::class
34
);
35

    
36
$app->singleton(
37
    Illuminate\Contracts\Console\Kernel::class,
38
    App\Console\Kernel::class
39
);
40

    
41
$app->singleton(
42
    Illuminate\Contracts\Debug\ExceptionHandler::class,
43
    App\Exceptions\Handler::class
44
);
45

    
46
/*
47
|--------------------------------------------------------------------------
48
| Return The Application
49
|--------------------------------------------------------------------------
50
|
51
| This script returns the application instance. The instance is given to
52
| the calling script so we can separate the building of the instances
53
| from the actual running of the application and sending responses.
54
|
55
*/
56

    
57
return $app;
    (1-1/1)