PHP_SMART_HOME_V3/public/index.php

34 lines
525 B
PHP
Raw Normal View History

2020-04-20 19:49:30 +00:00
<?php
2020-04-21 13:27:57 +00:00
/**
* Composer autoload
*/
2020-12-15 20:10:42 +00:00
use Core\Application\Application;
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();
$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(
$container,
$container->make(Configurations::class)
2020-12-15 20:10:42 +00:00
);
$application->run();
/**
* Bootstrap v1.0
*/
require_once __DIR__ . '/../app/Bootstrap.php';