Do not execute controller if the response is already sent
This commit is contained in:
@@ -26,7 +26,10 @@ class Runner extends Base
|
||||
{
|
||||
try {
|
||||
$this->executeMiddleware();
|
||||
$this->executeController();
|
||||
|
||||
if (!$this->response->isResponseAlreadySent()) {
|
||||
$this->executeController();
|
||||
}
|
||||
} catch (PageNotFoundException $e) {
|
||||
$controllerObject = new AppController($this->container);
|
||||
$controllerObject->notFound($e->hasLayout());
|
||||
|
||||
Reference in New Issue
Block a user