Skip to content

Commit 0702d1f

Browse files
committed
[Book] make headlines consistent with our standards
1 parent cfd6d7c commit 0702d1f

13 files changed

+32
-32
lines changed

book/doctrine.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The easiest way to understand how Doctrine works is to see it in action.
3030
In this section, you'll configure your database, create a ``Product`` object,
3131
persist it to the database and fetch it back out.
3232

33-
.. sidebar:: Code along with the example
33+
.. sidebar:: Code along with the Example
3434

3535
If you want to follow along with the example in this chapter, create
3636
an ``AcmeStoreBundle`` via:
@@ -125,7 +125,7 @@ for you:
125125
126126
$ php app/console doctrine:database:create
127127
128-
.. sidebar:: Setting Up The Database to be UTF8
128+
.. sidebar:: Setting up the Database to be UTF8
129129

130130
One mistake even seasoned developers make when starting a Symfony2 project
131131
is forgetting to setup default charset and collation on their database,
@@ -1392,7 +1392,7 @@ powerful, allowing you to create complex queries and subscribe to events
13921392
that allow you to take different actions as objects go through their persistence
13931393
lifecycle.
13941394

1395-
Learn More
1395+
Learn more
13961396
~~~~~~~~~~
13971397

13981398
For more information about Doctrine, see the *Doctrine* section of the

book/forms.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ Each field type has a number of different options that can be passed to it.
618618
Many of these are specific to the field type and details can be found in
619619
the documentation for each type.
620620

621-
.. sidebar:: The ``required`` option
621+
.. sidebar:: The ``required`` Option
622622

623623
The most common option is the ``required`` option, which can be applied to
624624
any field. By default, the ``required`` option is set to ``true``, meaning
@@ -636,7 +636,7 @@ the documentation for each type.
636636
In other words, the ``required`` option is "nice", but true server-side
637637
validation should *always* be used.
638638

639-
.. sidebar:: The ``label`` option
639+
.. sidebar:: The ``label`` Option
640640

641641
The label for the form field can be set using the ``label`` option,
642642
which can be applied to any field::

book/from_flat_php_to_symfony2.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ to where it is now.
1616
By the end, you'll see how Symfony2 can rescue you from mundane tasks and
1717
let you take back control of your code.
1818

19-
A simple Blog in flat PHP
19+
A Simple Blog in Flat PHP
2020
-------------------------
2121

2222
In this chapter, you'll build the token blog application using only flat PHP.
@@ -698,7 +698,7 @@ And perhaps best of all, by using Symfony2, you now have access to a whole
698698
set of **high-quality open source tools developed by the Symfony2 community**!
699699
A good selection of Symfony2 community tools can be found on `KnpBundles.com`_.
700700

701-
Better templates
701+
Better Templates
702702
----------------
703703

704704
If you choose to use it, Symfony2 comes standard with a templating engine

book/http_cache.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ If ``debug`` is ``true``, Symfony2 automatically adds a ``X-Symfony-Cache``
234234
header to the response containing useful information about cache hits and
235235
misses.
236236

237-
.. sidebar:: Changing from one Reverse Proxy to Another
237+
.. sidebar:: Changing from one Reverse Proxy to another
238238

239239
The Symfony2 reverse proxy is a great tool to use when developing your
240240
website or when you deploy your website to a shared host where you cannot
@@ -327,7 +327,7 @@ its creation more manageable::
327327
// set a custom Cache-Control directive
328328
$response->headers->addCacheControlDirective('must-revalidate', true);
329329

330-
Public vs Private Responses
330+
Public vs private Responses
331331
~~~~~~~~~~~~~~~~~~~~~~~~~~~
332332

333333
Both gateway and proxy caches are considered "shared" caches as the cached

book/http_fundamentals.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ how to master it.
4242
.. index::
4343
single: HTTP; Request-response paradigm
4444

45-
Step1: The Client sends a Request
45+
Step1: The Client Sends a Request
4646
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4747

4848
Every conversation on the web starts with a *request*. The request is a text
@@ -105,7 +105,7 @@ the client accepts (``Accept``) and the application the client is using to
105105
make the request (``User-Agent``). Many other headers exist and can be found
106106
on Wikipedia's `List of HTTP header fields`_ article.
107107

108-
Step 2: The Server returns a Response
108+
Step 2: The Server Returns a Response
109109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110110

111111
Once a server has received the request, it knows exactly which resource the
@@ -248,7 +248,7 @@ you'll never need to worry about. For example, the ``isSecure()`` method
248248
checks the *three* different values in PHP that can indicate whether or not
249249
the user is connecting via a secured connection (i.e. HTTPS).
250250

251-
.. sidebar:: ParameterBags and Request attributes
251+
.. sidebar:: ParameterBags and Request Attributes
252252

253253
As seen above, the ``$_GET`` and ``$_POST`` variables are accessible via
254254
the public ``query`` and ``request`` properties respectively. Each of

book/internals.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ method returns an array of arguments to pass to the Controller callable. The
127127
default implementation automatically resolves the method arguments, based on
128128
the Request attributes.
129129

130-
.. sidebar:: Matching Controller method arguments from Request attributes
130+
.. sidebar:: Matching Controller Method Arguments from Request Attributes
131131

132132
For each method argument, Symfony2 tries to get the value of a Request
133133
attribute with the same name. If it is not defined, the argument default
@@ -489,7 +489,7 @@ token link (a string made of 13 random characters) to access the Web Profiler.
489489
If the token is not clickable, it means that the profiler routes are not
490490
registered (see below for configuration information).
491491

492-
Analyzing Profiling data with the Web Profiler
492+
Analyzing Profiling Data with the Web Profiler
493493
..............................................
494494

495495
The Web Profiler is a visualization tool for profiling data that you can use

book/propel.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A Simple Example: A Product
1515
In this section, you'll configure your database, create a ``Product`` object,
1616
persist it to the database and fetch it back out.
1717

18-
.. sidebar:: Code along with the example
18+
.. sidebar:: Code along with the Example
1919

2020
If you want to follow along with the example in this chapter, create an
2121
``AcmeStoreBundle`` via:
@@ -425,7 +425,7 @@ before. First, fetch a ``$product`` object and then access its related
425425

426426
Note, in the above example, only one query was made.
427427

428-
More information on Associations
428+
More Information on Associations
429429
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
430430

431431
You will find more information on relations by reading the dedicated chapter on

book/routing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ from the new routing resource.
10711071
:doc:`FrameworkExtraBundle documentation </bundles/SensioFrameworkExtraBundle/annotations/routing>`
10721072
to see how.
10731073

1074-
Adding a Host requirement to Imported Routes
1074+
Adding a Host Requirement to Imported Routes
10751075
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10761076

10771077
.. versionadded:: 2.2
@@ -1253,8 +1253,8 @@ method::
12531253
$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), true);
12541254
// http://www.example.com/blog/my-blog-post
12551255

1256-
From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)
1257-
rather than the ``path()`` function (which generates a relative URL). In PHP, pass ``true``
1256+
From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)
1257+
rather than the ``path()`` function (which generates a relative URL). In PHP, pass ``true``
12581258
to ``generateUrl()``:
12591259

12601260
.. configuration-block::

book/security.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ see :doc:`/cookbook/security/form_login`.
570570

571571
.. _book-security-common-pitfalls:
572572

573-
.. sidebar:: Avoid Common Pitfalls
573+
.. sidebar:: Avoid common Pitfalls
574574

575575
When setting up your login form, watch out for a few common pitfalls.
576576

@@ -713,7 +713,7 @@ In this section, you'll focus on how to secure different resources (e.g. URLs,
713713
method calls, etc) with different roles. Later, you'll learn more about how
714714
roles are created and assigned to users.
715715

716-
Securing Specific URL Patterns
716+
Securing specific URL Patterns
717717
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
718718

719719
The most basic way to secure part of your application is to secure an entire
@@ -763,7 +763,7 @@ You can define as many URL patterns as you need - each is a regular expression.
763763

764764
.. _security-book-access-control-explanation:
765765

766-
Understanding how ``access_control`` works
766+
Understanding how ``access_control`` Works
767767
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
768768

769769
For each incoming request, Symfony2 checks each ``access_control`` entry
@@ -1025,7 +1025,7 @@ In the previous sections, you learned how you can protect different resources
10251025
by requiring a set of *roles* for a resource. This section explores
10261026
the other side of authorization: users.
10271027

1028-
Where do Users come from? (*User Providers*)
1028+
Where do Users Come from? (*User Providers*)
10291029
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10301030

10311031
During authentication, the user submits a set of credentials (usually a username
@@ -1390,7 +1390,7 @@ method:
13901390

13911391
<p>Username: <?php echo $app->getUser()->getUsername() ?></p>
13921392

1393-
Using Multiple User Providers
1393+
Using multiple User Providers
13941394
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13951395

13961396
Each authentication mechanism (e.g. HTTP Authentication, form login, etc)
@@ -1671,7 +1671,7 @@ the built-in helper function:
16711671
idea to have a main firewall that covers all URLs (as has been shown
16721672
in this chapter).
16731673

1674-
Access Control Lists (ACLs): Securing Individual Database Objects
1674+
Access Control Lists (ACLs): Securing individual Database Objects
16751675
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16761676

16771677
Imagine you are designing a blog system where your users can comment on your
@@ -1868,7 +1868,7 @@ algorithm; you can use the same strategy in your own code thanks to the
18681868
// is password1 equals to password2?
18691869
$bool = StringUtils::equals($password1, $password2);
18701870

1871-
Generating a secure Random Number
1871+
Generating a secure random Number
18721872
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18731873

18741874
Whenever you need to generate a secure random number, you are highly

book/service_container.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
762762
and "setter injection". The Symfony2 service container also supports
763763
"property injection".
764764

765-
Making References Optional
765+
Making References optional
766766
--------------------------
767767

768768
Sometimes, one of your services may have an optional dependency, meaning

book/templating.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Templating
33

4-
Creating and using Templates
4+
Creating and Using Templates
55
============================
66

77
As you know, the :doc:`controller </book/controller>` is responsible for
@@ -1129,7 +1129,7 @@ automatically:
11291129
.. index::
11301130
single: Templating; The templating service
11311131

1132-
Configuring and using the ``templating`` Service
1132+
Configuring and Using the ``templating`` Service
11331133
------------------------------------------------
11341134

11351135
The heart of the template system in Symfony2 is the templating ``Engine``.

book/testing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ document::
229229

230230
.. _book-testing-request-method-sidebar:
231231

232-
.. sidebar:: More about the ``request()`` method:
232+
.. sidebar:: More about the ``request()`` Method:
233233

234234
The full signature of the ``request()`` method is::
235235

@@ -404,7 +404,7 @@ The Client supports many operations that can be done in a real browser::
404404
// Clears all cookies and the history
405405
$client->restart();
406406

407-
Accessing Internal Objects
407+
Accessing internal Objects
408408
~~~~~~~~~~~~~~~~~~~~~~~~~~
409409

410410
.. versionadded:: 2.3

book/translation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ as the locale for the current request.
499499
You can now use the locale to create routes to other translated pages
500500
in your application.
501501

502-
Setting a Default Locale
502+
Setting a default Locale
503503
~~~~~~~~~~~~~~~~~~~~~~~~
504504

505505
What if the user's locale hasn't been determined? You can guarantee that a

0 commit comments

Comments
 (0)