From 4bf76f87f155434c439f3f21168aa032cb836283 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 26 Jul 2022 19:41:21 +0200 Subject: [PATCH] app/library/Bootstrap.php: require $uri parameter in run() Phalcon/Application::handle() requires it to be passed. --- app/library/Bootstrap.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); + } } }