Skip to content

Commit e6f52a0

Browse files
committed
Final changes
1 parent 0410e62 commit e6f52a0

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ database and the Templating component to render a template and return a
607607
<?php endforeach ?>
608608
</ul>
609609

610-
The layout ``layout.php`` is nearly identical:
610+
The ``layout.php`` file is nearly identical:
611611

612612
.. code-block:: html+php
613613

book/http_fundamentals.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ the user is connecting via a secured connection (i.e. HTTPS).
278278
prepare and store context-specific information about the request.
279279

280280
Symfony Response Object
281-
~~~~~~~~~~~~~~~~~~~~~~
281+
~~~~~~~~~~~~~~~~~~~~~~~
282282

283283
Symfony also provides a :class:`Symfony\\Component\\HttpFoundation\\Response`
284284
class: a simple PHP representation of an HTTP response message. This allows your
@@ -290,7 +290,7 @@ needs to be returned to the client::
290290
$response = new Response();
291291

292292
$response->setContent('<html><body><h1>Hello world!</h1></body></html>');
293-
$response->setStatusCode(Response::HTTP_OK);;
293+
$response->setStatusCode(Response::HTTP_OK);
294294

295295
// set a HTTP response header
296296
$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
306306
files and sending file downloads);
307307

308308
* :ref:`StreamedResponse <streaming-response>` (for streaming any other large responses);
309+
309310
.. tip::
310311

311312
The ``Request`` and ``Response`` classes are part of a standalone component
@@ -413,7 +414,7 @@ The Symfony Application Flow
413414
When you let Symfony handle each request, life is much easier. Symfony follows
414415
the same simple pattern for every request:
415416

416-
_request-flow-figure:
417+
.. _request-flow-figure:
417418

418419
.. figure:: /images/request-flow.png
419420
:align: center
@@ -534,7 +535,7 @@ Symfony Framework, or just one piece of Symfony all by itself.
534535
.. index::
535536
single: Symfony Components
536537

537-
_standalone-tools-the-symfony2-components:
538+
.. _standalone-tools-the-symfony2-components:
538539

539540
Standalone Tools: The Symfony *Components*
540541
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -575,7 +576,7 @@ Each one of these components is decoupled and can be used in *any* PHP project,
575576
regardless of whether or not you use the Symfony Framework. Every part is
576577
made to be used if needed and replaced when necessary.
577578

578-
_the-full-solution-the-symfony2-framework:
579+
.. _the-full-solution-the-symfony2-framework:
579580

580581
The Full Solution: The Symfony *Framework*
581582
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -601,11 +602,11 @@ sensible defaults. For more advanced users, the sky is the limit.
601602

602603
.. _`xkcd`: http://xkcd.com/
603604
.. _`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
607605
.. _`HTTP 1.1 RFC`: http://www.w3.org/Protocols/rfc2616/rfc2616.html
608606
.. _`HTTP Bis`: http://datatracker.ietf.org/wg/httpbis/
609607
.. _`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
610611
.. _`Validator`: https://github.com/symfony/validator
611612
.. _`Swift Mailer`: http://swiftmailer.org/

book/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,12 @@ Be sure to also check out the :doc:`Cookbook </cookbook/index>`, which contains
411411
a wide variety of articles about solving specific problems with Symfony.
412412

413413
.. _`explained in this post`: http://fabien.potencier.org/signing-project-releases.html
414-
.. _`Phar extension`: http://php.net/manual/en/intro.phar.php
415414
.. _`Composer`: https://getcomposer.org/
416415
.. _`enable ACL support`: https://help.ubuntu.com/community/FilePermissionsACLs
417-
.. _`Git`: http://git-scm.com/
418416
.. _`Symfony Standard Edition`: https://github.com/symfony/symfony-standard
419417
.. _`Symfony CMF Standard Edition`: https://github.com/symfony-cmf/symfony-cmf-standard
420418
.. _`Symfony CMF`: http://cmf.symfony.com/
421419
.. _`Symfony REST Edition`: https://github.com/gimler/symfony-rest-edition
422420
.. _`FOSRestBundle`: https://github.com/FriendsOfSymfony/FOSRestBundle
421+
.. _`Git`: http://git-scm.com/
422+
.. _`Phar extension`: http://php.net/manual/en/intro.phar.php

book/page_creation.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Just like on the web, every interaction is initiated by an HTTP request.
2525
Your job is pure and simple: understand that request and return a response.
2626

2727
.. index::
28-
single:: Page creation; Example
28+
single: Page creation; Example
2929

3030
Creating a Page: Route and Controller
3131
-------------------------------------
@@ -432,15 +432,13 @@ The ``app/`` directory also holds a few other things, like the cache directory
432432
which you'll use to enable new bundles (and one of a *very* short list of
433433
PHP files in ``app/``).
434434

435-
The ``src/`` directory has just one directory ``src/AppBundle`` and everything
436-
lives inside of it. Is where your code lives. It's a set of files within a
437-
directory that implement a single feature. Symfony Standard Edition comes with
438-
``AppBundle`` but there is nothing special about ``AppBundle``. Your project can
439-
have as many bundles as you want, you can even use third-party bundles written
440-
by other that you can find at `KnpBundles.com`_. So, a :term:`bundle` is like a
441-
"plugin" in other software, but even better. To find out more about bundles and
442-
why you might create multiple bundles (hint: sharing code between projects), see
443-
the :doc:`Bundles </book/bundles>` chapter.
435+
The ``src/`` directory has just one directory - ``src/AppBundle`` -
436+
and everything lives inside of it. A bundle is like a "plugin" and you can
437+
`find open source bundles`_ and install them into your project. But even
438+
*your* code lives in a bundle - typically ``AppBundle`` (though there's
439+
nothing special about ``AppBundle``). To find out more about bundles and
440+
why you might create multiple bundles (hint: sharing code between projects),
441+
see the :doc:`Bundles </book/bundles>` chapter.
444442

445443
So what about the other directories in the project?
446444

0 commit comments

Comments
 (0)