Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ content:

{
"require": {
"symfony/symfony": "2.4.*"
"symfony/symfony": "2.5.*"
},
"autoload": {
"files": ["model.php","controllers.php"]
Expand Down Expand Up @@ -480,8 +480,8 @@ the HTTP response being returned. Use them to improve the blog:
// echo the headers and send the response
$response->send();

.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.
.. versionadded:: 2.5
Support for HTTP status code constants was introduced in Symfony 2.5.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


The controllers are now responsible for returning a ``Response`` object.
To make this easier, you can add a new ``render_template()`` function, which,
Expand Down