Skip to content

Commit 7634019

Browse files
committed
Presenter: triggers notice when payload is send via terminate()
1 parent 64606f4 commit 7634019

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Application/UI/Presenter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ public function run(Application\Request $request)
229229
$this->response->send($this->httpRequest, $this->httpResponse);
230230
$this->sendPayload();
231231
} elseif (!$this->response && $hasPayload) { // back compatibility for use terminate() instead of sendPayload()
232+
trigger_error('Use $presenter->sendPayload() instead of terminate() to send payload.');
232233
$this->sendPayload();
233234
}
234235
} catch (Application\AbortException $e) {

0 commit comments

Comments
 (0)