Initial commit

This commit is contained in:
Maarten 2019-12-20 00:09:25 +01:00
commit 06f17dff5b
9 changed files with 115 additions and 0 deletions

28
src/Runtime/Bootstrap.php Normal file
View file

@ -0,0 +1,28 @@
<?php
namespace Runtime;
use App\Http\Controllers\BaseController;
class Bootstrap {
/**
* Start handling process
*
* @return string
*/
public static function handle() {
return (new Bootstrap())->run();
}
private $base;
public function __construct()
{
$this->base = new BaseController();
}
protected function run() {
return $this->base->test();
}
}

View file

@ -0,0 +1,11 @@
<?php
namespace Runtime\Http\Controllers;
class Controller {
public function lol() {
return new ControllerExtractor();
}
}

View file

@ -0,0 +1,12 @@
<?php
namespace Runtime\Http\Controllers;
class ControllerExtractor {
public function __toString()
{
return "Het werkt :)";
}
}