Setup basic for cli interface

This commit is contained in:
Maarten 2019-12-24 01:23:13 +01:00
parent cc9856ad39
commit 3e10244ff5
4 changed files with 31 additions and 0 deletions

View file

@ -2,6 +2,7 @@
namespace Runtime\Factory;
use Cli\Factory;
use Runtime\Exceptions\Exceptions\ClassNotFoundException;
use Runtime\Http\View\ViewEngine;
use Runtime\Router\Route;
@ -12,6 +13,9 @@ use Twig\Loader\FilesystemLoader;
class BootstrapFactory {
/**
*
*/
public function handle()
{
Route::setDefaultNamespace('\App\Http\Controllers');
@ -29,6 +33,11 @@ class BootstrapFactory {
}
}
public function kernel()
{
app(Factory::class)->handle();
}
/**
* @param $abstract
* @return mixed