Skip to content

Commit 0196aaa

Browse files
committed
Merge branch '2.0' into 2.1
Conflicts: book/templating.rst
2 parents bdf09d4 + 537ddb3 commit 0196aaa

File tree

9 files changed

+27
-22
lines changed

9 files changed

+27
-22
lines changed

README.markdown

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ Contributing
77
------------
88

99
>**Note**
10-
>Unless you're documenting a feature that's new to Symfony 2.1, all pull
11-
>requests must be based off of the **2.0** branch, **not** the master branch.
10+
>Unless you're documenting a feature that's new to a specific version of Symfony
11+
>(e.g. Symfony 2.1), all pull requests must be based off of the **2.0** branch,
12+
>**not** the master or 2.1 branch.
1213
1314
We love contributors! For more information on how you can contribute to the
14-
Symfony documentation, please read [Contributing to the Documentation](http://symfony.com/doc/current/contributing/documentation/overview.html)
15+
Symfony documentation, please read
16+
[Contributing to the Documentation](http://symfony.com/doc/current/contributing/documentation/overview.html)

book/templating.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,17 @@ Throughout this chapter, template examples will be shown in both Twig and PHP.
128128
and benefit from this distinction. And of course, you'll be loved by
129129
web designers everywhere.
130130

131-
Twig can also do things that PHP can't, such as whitespace control, sandboxing,
132-
and the inclusion of custom functions and filters that only affect templates.
133-
Twig contains little features that make writing templates easier and
134-
more concise. Take the following example, which combines a loop with
135-
a logical ``if`` statement:
131+
Twig can also do things that PHP can't, such as whitespace control,
132+
sandboxing, automatic and contextual output escaping, and the inclusion of
133+
custom functions and filters that only affect templates. Twig contains
134+
little features that make writing templates easier and more concise. Take
135+
the following example, which combines a loop with a logical ``if``
136+
statement:
136137

137138
.. code-block:: html+jinja
138139

139140
<ul>
140-
{% for user in users %}
141+
{% for user in users if user.active %}
141142
<li>{{ user.username }}</li>
142143
{% else %}
143144
<li>No users found</li>

components/process.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ instead::
6060

6161
$process = new PhpProcess(<<<EOF
6262
<?php echo 'Hello World'; ?>
63-
EOF);
63+
EOF
64+
);
6465
$process->run();
6566

6667
.. versionadded:: 2.1

cookbook/configuration/override_dir_structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ in the ``AppKernel`` class of you application::
4646
is the current environment (i.e. ``dev``). In this case we have changed
4747
the location of the cache directory to ``app/{environment}/cache``.
4848

49-
.. warning::
49+
.. caution::
5050

5151
You should keep the ``cache`` directory different for each environment,
5252
otherwise some unexpected behaviour may happen. Each environment generates

cookbook/security/acl_advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Object Identities
3434
The ACL system is completely decoupled from your domain objects. They don't
3535
even have to be stored in the same database, or on the same server. In order
3636
to achieve this decoupling, in the ACL system your objects are represented
37-
through object identity objects. Everytime, you want to retrieve the ACL for a
37+
through object identity objects. Everytime you want to retrieve the ACL for a
3838
domain object, the ACL system will first create an object identity from your
3939
domain object, and then pass this object identity to the ACL provider for
4040
further processing.

cookbook/security/custom_authentication_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ Configuration
454454
~~~~~~~~~~~~~
455455

456456
You can add custom options under the ``wsse`` key in your security configuration.
457-
For instance, the time allowed before expiring the Created header item,
457+
For instance, the time allowed before expiring the ``Created`` header item,
458458
by default, is 5 minutes. Make this configurable, so different firewalls
459459
can have different timeout lengths.
460460

cookbook/security/force_https.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ How to force HTTPS or HTTP for Different URLs
77
You can force areas of your site to use the ``HTTPS`` protocol in the security
88
config. This is done through the ``access_control`` rules using the ``requires_channel``
99
option. For example, if you want to force all URLs starting with ``/secure``
10-
to use ``HTTPS`` then you could use the following config:
10+
to use ``HTTPS`` then you could use the following configuration:
1111

1212
.. configuration-block::
1313

@@ -33,7 +33,7 @@ to use ``HTTPS`` then you could use the following config:
3333
),
3434
),
3535
36-
The login form itself needs to allow anonymous access otherwise users will
36+
The login form itself needs to allow anonymous access, otherwise users will
3737
be unable to authenticate. To force it to use ``HTTPS`` you can still use
3838
``access_control`` rules by using the ``IS_AUTHENTICATED_ANONYMOUSLY``
3939
role:

cookbook/security/form_login.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ Redirecting after Success
105105
You can change where the login form redirects after a successful login using
106106
the various config options. By default the form will redirect to the URL the
107107
user requested (i.e. the URL which triggered the login form being shown).
108-
For example, if the user requested ``http://www.example.com/admin/post/18/edit``
109-
then after he/she will eventually be sent back to ``http://www.example.com/admin/post/18/edit``
110-
after successfully logging in. This is done by storing the requested URL
111-
in the session. If no URL is present in the session (perhaps the user went
108+
For example, if the user requested ``http://www.example.com/admin/post/18/edit``,
109+
then after she successfully logs in, she will eventually be sent back to
110+
``http://www.example.com/admin/post/18/edit``.
111+
This is done by storing the requested URL in the session.
112+
If no URL is present in the session (perhaps the user went
112113
directly to the login page), then the user is redirected to the default page,
113114
which is ``/`` (i.e. the homepage) by default. You can change this behavior
114115
in several ways.
@@ -163,7 +164,7 @@ the following config:
163164
),
164165
));
165166
166-
Now, when no URL is set in the session users will be sent to ``/admin``.
167+
Now, when no URL is set in the session, users will be sent to ``/admin``.
167168

168169
Always Redirect to the Default Page
169170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -341,7 +342,7 @@ option to another value.
341342
Redirecting on Login Failure
342343
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
343344

344-
In addition to redirect the user after a successful login, you can also set
345+
In addition to redirecting the user after a successful login, you can also set
345346
the URL that the user should be redirected to after a failed login (e.g. an
346347
invalid username or password was submitted). By default, the user is redirected
347348
back to the login form itself. You can set this to a different URL with the

cookbook/testing/http_authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ as server variables to ``createClient()``::
1414

1515
You can also override it on a per request basis::
1616

17-
$client->request('DELETE', '/post/12', array(), array(
17+
$client->request('DELETE', '/post/12', array(), array(), array(
1818
'PHP_AUTH_USER' => 'username',
1919
'PHP_AUTH_PW' => 'pa$$word',
2020
));

0 commit comments

Comments
 (0)