From b19d84a287477992cfabf258db8784486e140d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=C3=BCttner?= Date: Mon, 18 Feb 2019 20:33:51 +0200 Subject: [PATCH] 4.0.x: adding missing method isSent to interface ResponseInterface (#13836) * adding missing method to interface * adding fix mention: ResponseInterface::isSent --- CHANGELOG-4.0.md | 1 + phalcon/http/responseinterface.zep | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 077b0058332..207889e3393 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -10,6 +10,7 @@ - Fixed storing related model data in `Phalcon\Messages\Message`. The method is now `setMetadata` and can be used to store any metadata from any component that emits messages [#13811](https://github.com/phalcon/cphalcon/issues/13811) - Fixed Dispatcher calling camelize twice and producing incorrect results [#12829](https://github.com/phalcon/cphalcon/issues/12829) - Fixed `Phalcon\Mvc\Model:findFirst` to throw an exception when the passed parameter for a primary key is not an array, string or numeric [#13336](https://github.com/phalcon/cphalcon/issues/13336) +- Added `Phalcon\Http\ResponseInterface::isSent`, that was already used. [#13836](https://github.com/phalcon/cphalcon/pull/13836) ## Changed - Renamed `Phalcon\Acl\Subject` to `Phalcon\Acl\Component` [#13808](https://github.com/phalcon/cphalcon/issues/13808) diff --git a/phalcon/http/responseinterface.zep b/phalcon/http/responseinterface.zep index 959e822bf4c..acc49165cc7 100644 --- a/phalcon/http/responseinterface.zep +++ b/phalcon/http/responseinterface.zep @@ -44,6 +44,11 @@ interface ResponseInterface */ public function hasHeader(string name) -> bool; + /** + * Checks if the response was already sent + */ + public function isSent() -> bool; + /** * Redirect by HTTP to another action or URL */