diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 82d15d44255..201d58ee4ce 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -9,6 +9,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 */