diff --git a/app/library/Bootstrap.php b/app/library/Bootstrap.php index d1eaa63..e6bc471 100644 --- a/app/library/Bootstrap.php +++ b/app/library/Bootstrap.php @@ -57,9 +57,15 @@ class Bootstrap extends Injectable * * @return string */ - public function run() + public function run($uri) { $this->_app->setDI($this->getDI()); - return $this->_app->handle()->getContent(); + + try { + $response = $this->_app->handle($uri); + $response->send(); + } catch(\Exception $ex) { + echo $ex->getMessage(); + } } }