Skip to content

Commit

Permalink
Merge pull request #8815 from kenjis/docs-upgrade_responses.rst
Browse files Browse the repository at this point in the history
docs: small fixes in  upgrade responses.rst
  • Loading branch information
kenjis authored Apr 30, 2024
2 parents 3134350 + d6f1e88 commit d47eccf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion user_guide_src/source/installation/upgrade_4xx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ Upgrading Libraries
upgrade_images
upgrade_localization
upgrade_migrations
upgrade_pagination
upgrade_responses
upgrade_pagination
upgrade_routing
upgrade_security
upgrade_sessions
Expand Down
9 changes: 5 additions & 4 deletions user_guide_src/source/installation/upgrade_responses.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Upgrade HTTP Responses
######################
Upgrade Output Class
####################

.. contents::
:local:
Expand All @@ -12,11 +12,12 @@ Documentations

What has been changed
=====================
- The methods have been renamed
- The Output class has been changed to the Response class.
- The methods have been renamed.

Upgrade Guide
=============
1. The methods in the HTTP Responses class are named slightly different. The most important change in the naming is the switch from underscored method names to camelCase. The method ``set_content_type()`` from version 3 is now named ``setContentType()`` and so on.
1. The methods in the HTTP Response class are named slightly different. The most important change in the naming is the switch from underscored method names to camelCase. The method ``set_content_type()`` from version 3 is now named ``setContentType()`` and so on.
2. In the most cases you have to change ``$this->output`` to ``$this->response`` followed by the method. You can find all methods in :doc:`../outgoing/response`.

Code Example
Expand Down

0 comments on commit d47eccf

Please sign in to comment.