Initial commit
This commit is contained in:
commit
06f17dff5b
9 changed files with 115 additions and 0 deletions
28
src/Runtime/Bootstrap.php
Normal file
28
src/Runtime/Bootstrap.php
Normal 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();
|
||||
}
|
||||
}
|
11
src/Runtime/Http/Controllers/Controller.php
Normal file
11
src/Runtime/Http/Controllers/Controller.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Runtime\Http\Controllers;
|
||||
|
||||
class Controller {
|
||||
|
||||
public function lol() {
|
||||
return new ControllerExtractor();
|
||||
}
|
||||
|
||||
}
|
12
src/Runtime/Http/Controllers/ControllerExtractor.php
Normal file
12
src/Runtime/Http/Controllers/ControllerExtractor.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Runtime\Http\Controllers;
|
||||
|
||||
class ControllerExtractor {
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return "Het werkt :)";
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue