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