Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Mvc\Application::run returns ResponseInterface. #4831

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions library/Zend/Mvc/Application.php
Expand Up @@ -297,12 +297,13 @@ public function run()
return $response;
}
if ($event->getError()) {
return $this->completeRequest($event);
$this->completeRequest($event);
}
return $event->getResponse();
}
if ($event->getError()) {
return $this->completeRequest($event);
$this->completeRequest($event);
return $event->getResponse();
}

// Trigger dispatch event
Expand All @@ -320,8 +321,7 @@ public function run()
$response = $this->getResponse();
$event->setResponse($response);
$this->completeRequest($event);

return $this;
return $response;
}

/**
Expand Down