2020-04-20 19:49:30 +00:00
|
|
|
<?php
|
2020-04-21 13:27:57 +00:00
|
|
|
|
2020-12-15 15:56:12 +00:00
|
|
|
/**
|
|
|
|
* Composer autoload
|
|
|
|
*/
|
2020-12-15 20:10:42 +00:00
|
|
|
|
|
|
|
use Core\Application\Application;
|
2020-12-15 20:46:46 +00:00
|
|
|
use Core\Configuration\Configurations;
|
2020-12-15 20:10:42 +00:00
|
|
|
use Illuminate\Container\Container;
|
|
|
|
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
|
|
|
$container = new Container();
|
|
|
|
|
2020-12-15 20:46:46 +00:00
|
|
|
$container->singleton(
|
|
|
|
Configurations::class,
|
|
|
|
Configurations::class
|
|
|
|
);
|
2020-12-15 15:59:08 +00:00
|
|
|
|
|
|
|
/**
|
2020-12-15 20:10:42 +00:00
|
|
|
* Create application & run
|
2020-12-15 15:59:08 +00:00
|
|
|
*/
|
2020-12-15 20:10:42 +00:00
|
|
|
$application = new Application(
|
2020-12-15 20:46:46 +00:00
|
|
|
$container,
|
|
|
|
$container->make(Configurations::class)
|
2020-12-15 20:10:42 +00:00
|
|
|
);
|
|
|
|
$application->run();
|
2020-12-15 20:46:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap v1.0
|
|
|
|
*/
|
|
|
|
require_once __DIR__ . '/../app/Bootstrap.php';
|