Skip to content

Commit

Permalink
Use ResponseEmitter instead of deprecated Response::send().
Browse files Browse the repository at this point in the history
Refs #11634.
  • Loading branch information
ADmad committed Jan 28, 2018
1 parent 7d75c95 commit 8548071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Error/ErrorHandler.php
Expand Up @@ -17,6 +17,7 @@
namespace Cake\Error;

use Cake\Core\App;
use Cake\Http\ResponseEmitter;
use Exception;
use Throwable;

Expand Down Expand Up @@ -194,6 +195,8 @@ protected function _sendResponse($response)

return;
}
$response->send();

$emitter = new ResponseEmitter();
$emitter->emit($response);
}
}

0 comments on commit 8548071

Please sign in to comment.