Skip to content

Commit

Permalink
4.0.x: adding missing method isSent to interface ResponseInterface (#…
Browse files Browse the repository at this point in the history
…13836)

* adding missing method to interface

* adding fix mention: ResponseInterface::isSent
  • Loading branch information
Idrinth authored and niden committed Feb 18, 2019
1 parent e427da5 commit b19d84a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions phalcon/http/responseinterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit b19d84a

Please sign in to comment.