Skip to content

Commit

Permalink
Fix exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 19, 2016
1 parent a96b657 commit 91a5305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Router.php
Expand Up @@ -117,6 +117,9 @@ public function __construct() {
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
try {
// initialize view to ensure StreamedResponse->streamed is false
$this->view = null;

// initialize entity manager
if (null == $this->em || !$this->em->isOpen()) {
$this->em = self::createEntityManager();
Expand Down

0 comments on commit 91a5305

Please sign in to comment.