initial: bootstrap from BukidBountyApp base
This commit is contained in:
40
bootstrap/app.php
Normal file
40
bootstrap/app.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Create The Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The first thing we will do is create a new Hypervel application instance
|
||||
| which serves as the "glue" for all the components of Hypervel, and is
|
||||
| the IoC container for the system binding all of the various parts.
|
||||
|
|
||||
*/
|
||||
|
||||
$app = new Hypervel\Foundation\Application();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Bind Important Interfaces
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Next, we need to bind some important interfaces into the container so
|
||||
| we will be able to resolve them when needed.
|
||||
|
|
||||
*/
|
||||
|
||||
$app->bind(
|
||||
Hypervel\Foundation\Console\Contracts\Kernel::class,
|
||||
App\Console\Kernel::class
|
||||
);
|
||||
|
||||
$app->bind(
|
||||
Hypervel\Foundation\Exceptions\Contracts\ExceptionHandler::class,
|
||||
App\Exceptions\Handler::class
|
||||
);
|
||||
|
||||
Hypervel\Context\ApplicationContext::setContainer($app);
|
||||
|
||||
return $app;
|
||||
Reference in New Issue
Block a user