@@ -278,7 +278,7 @@ the user is connecting via a secured connection (i.e. HTTPS).
278
278
prepare and store context-specific information about the request.
279
279
280
280
Symfony Response Object
281
- ~~~~~~~~~~~~~~~~~~~~~~
281
+ ~~~~~~~~~~~~~~~~~~~~~~~
282
282
283
283
Symfony also provides a :class: `Symfony\\ Component\\ HttpFoundation\\ Response `
284
284
class: a simple PHP representation of an HTTP response message. This allows your
@@ -290,7 +290,7 @@ needs to be returned to the client::
290
290
$response = new Response();
291
291
292
292
$response->setContent('<html><body><h1>Hello world!</h1></body></html>');
293
- $response->setStatusCode(Response::HTTP_OK);;
293
+ $response->setStatusCode(Response::HTTP_OK);
294
294
295
295
// set a HTTP response header
296
296
$response->headers->set('Content-Type', 'text/html');
@@ -306,6 +306,7 @@ There are also special classes to make certain types of responses easier to crea
306
306
files and sending file downloads);
307
307
308
308
* :ref: `StreamedResponse <streaming-response >` (for streaming any other large responses);
309
+
309
310
.. tip ::
310
311
311
312
The ``Request `` and ``Response `` classes are part of a standalone component
@@ -413,7 +414,7 @@ The Symfony Application Flow
413
414
When you let Symfony handle each request, life is much easier. Symfony follows
414
415
the same simple pattern for every request:
415
416
416
- _request-flow-figure:
417
+ .. _request-flow-figure :
417
418
418
419
.. figure :: /images/request-flow.png
419
420
:align: center
@@ -534,7 +535,7 @@ Symfony Framework, or just one piece of Symfony all by itself.
534
535
.. index ::
535
536
single: Symfony Components
536
537
537
- _standalone-tools-the-symfony2-components:
538
+ .. _standalone-tools-the-symfony2-components :
538
539
539
540
Standalone Tools: The Symfony *Components *
540
541
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -575,7 +576,7 @@ Each one of these components is decoupled and can be used in *any* PHP project,
575
576
regardless of whether or not you use the Symfony Framework. Every part is
576
577
made to be used if needed and replaced when necessary.
577
578
578
- _the-full-solution-the-symfony2-framework:
579
+ .. _the-full-solution-the-symfony2-framework :
579
580
580
581
The Full Solution: The Symfony *Framework *
581
582
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -601,11 +602,11 @@ sensible defaults. For more advanced users, the sky is the limit.
601
602
602
603
.. _`xkcd` : http://xkcd.com/
603
604
.. _`XMLHttpRequest` : https://en.wikipedia.org/wiki/XMLHttpRequest
604
- .. _`List of HTTP header fields` : https://en.wikipedia.org/wiki/List_of_HTTP_header_fields
605
- .. _`List of HTTP status codes` : https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
606
- .. _`List of common media types` : https://www.iana.org/assignments/media-types/media-types.xhtml
607
605
.. _`HTTP 1.1 RFC` : http://www.w3.org/Protocols/rfc2616/rfc2616.html
608
606
.. _`HTTP Bis` : http://datatracker.ietf.org/wg/httpbis/
609
607
.. _`Live HTTP Headers` : https://addons.mozilla.org/en-US/firefox/addon/live-http-headers/
608
+ .. _`List of HTTP header fields` : https://en.wikipedia.org/wiki/List_of_HTTP_header_fields
609
+ .. _`List of HTTP status codes` : https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
610
+ .. _`List of common media types` : https://www.iana.org/assignments/media-types/media-types.xhtml
610
611
.. _`Validator` : https://github.com/symfony/validator
611
612
.. _`Swift Mailer` : http://swiftmailer.org/
0 commit comments