Skip to content

Commit ca03152

Browse files
fprochazkanicolas-grekas
authored andcommitted
Catch \Throwable
1 parent d5be533 commit ca03152

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DependencyInjection/ContainerAwareHttpKernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ
6464
$this->container->set('request', null, 'request');
6565
$this->container->leaveScope('request');
6666

67+
throw $e;
68+
} catch (\Throwable $e) {
69+
$this->container->set('request', null, 'request');
70+
$this->container->leaveScope('request');
71+
6772
throw $e;
6873
}
6974

0 commit comments

Comments
 (0)