Skip to content

Commit 403072f

Browse files
committed
catch aoutput that fisturbs emitter
1 parent 0743fee commit 403072f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

installation/index.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
/*****************************
6969
* SEND RESPONSE TO WEBSERVER *
7070
*****************************/
71-
//~r($response->getStatusCode());
7271
$emitter = $DIContainer->get('emitter');
73-
$emitter->emit($response);
72+
//in case any output disturbs emitter, catch the exception and display the output
73+
try {
74+
$emitter->emit($response);
75+
} catch(\Exception $e) {
76+
xx($e);
77+
}

0 commit comments

Comments
 (0)