app/library/Bootstrap.php: require $uri parameter in run()
Phalcon/Application::handle() requires it to be passed.
This commit is contained in:
parent
53f50ba49e
commit
4bf76f87f1
1 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue