| 1 | <?php |
||
| 8 | class ErrorMiddleware extends Middleware { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var Chat |
||
| 12 | */ |
||
| 13 | private $app; |
||
| 14 | |||
| 15 | public function __construct(Chat $app){ |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * this replaces "bad words" with "********" in the output |
||
| 22 | */ |
||
| 23 | public function afterException($controller, $methodName, \Exception $e){ |
||
| 26 | |||
| 27 | } |