Archived
1
0
Fork 0

app/library/Bootstrap.php: require $uri parameter in run()

Phalcon/Application::handle() requires it to be passed.
This commit is contained in:
Henrik Hautakoski 2022-07-26 19:41:21 +02:00
parent 53f50ba49e
commit 4bf76f87f1

View file

@ -57,9 +57,15 @@ class Bootstrap extends Injectable
* *
* @return string * @return string
*/ */
public function run() public function run($uri)
{ {
$this->_app->setDI($this->getDI()); $this->_app->setDI($this->getDI());
return $this->_app->handle()->getContent();
try {
$response = $this->_app->handle($uri);
$response->send();
} catch(\Exception $ex) {
echo $ex->getMessage();
}
} }
} }