Skip to content

Commit 873db0f

Browse files
committed
Merge branch '4.3'
* 4.3: Removed more belittling words and expressions
2 parents 1b047d7 + f2e5355 commit 873db0f

40 files changed

+108
-107
lines changed

_build/maintainer_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ Step 2: Merge the pull request
120120
Never use GitHub's web interface (or desktop clients) to merge PRs or to solve
121121
merge conflicts. Always use the ``gh`` tool for anything related to merges.
122122

123-
We require 2 approval votes from team members before merging a PR, except if
124-
it's a typo, a small change or an obvious error.
123+
We require two approval votes from team members before merging a PR, except if
124+
it's a typo, a small change or clearly an error.
125125

126126
If a PR contains lots of commits, there's no need to ask the contributor to
127127
squash them. The ``gh`` tool does that automatically. The only exceptions are

best_practices/business-logic.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ distributed among developers, with a slight preference towards YAML.
109109
Both formats have the same performance, so this is ultimately a matter of
110110
personal taste.
111111

112-
We recommend YAML because it's friendly to newcomers and concise. You can
113-
use any of the other formats if you prefer another format.
112+
We recommend YAML because it's friendly to newcomers and concise, but you can
113+
use whatever format you like.
114114

115115
Using a Persistence Layer
116116
-------------------------

best_practices/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ Constants can be used for example in your Twig templates thanks to the
138138
Displaying the {{ constant('NUMBER_OF_ITEMS', post) }} most recent results.
139139
</p>
140140

141-
And Doctrine entities and repositories can now easily access these values,
142-
whereas they cannot access the container parameters::
141+
And Doctrine entities and repositories can access these values too, whereas they
142+
cannot access the container parameters::
143143

144144
namespace App\Repository;
145145

@@ -155,7 +155,7 @@ whereas they cannot access the container parameters::
155155
}
156156

157157
The only notable disadvantage of using constants for this kind of configuration
158-
values is that you cannot redefine them easily in your tests.
158+
values is that it's complicated to redefine their values in your tests.
159159

160160
Parameter Naming
161161
----------------

best_practices/controllers.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ The ``@Template`` annotation is useful, but also involves some magic. We
8989
don't think its benefit is worth the magic, and so recommend against using
9090
it.
9191

92-
Most of the time, ``@Template`` is used without any parameters, which makes
93-
it more difficult to know which template is being rendered. It also makes
94-
it less obvious to beginners that a controller should always return a Response
95-
object (unless you're using a view layer).
92+
Most of the time, ``@Template`` is used without any parameters, which makes it
93+
more difficult to know which template is being rendered. It also hides the fact
94+
that a controller should always return a Response object (unless you're using a
95+
view layer).
9696

9797
What does the Controller look like
9898
----------------------------------

best_practices/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ primarily under the ``firewalls`` key.
1818
API only), we recommend having only *one* firewall entry with the ``anonymous``
1919
key enabled.
2020

21-
Most applications only have one authentication system and one set of users.
22-
For this reason, you only need *one* firewall entry. There are exceptions
23-
of course, especially if you have separated web and API sections on your
24-
site. But the point is to keep things simple.
21+
Most applications only have one authentication system and one set of users. For
22+
this reason, you only need *one* firewall entry. If you have separated web and
23+
API sections on your site, you will need more firewall entries. But the point is
24+
to keep things simple.
2525

2626
Additionally, you should use the ``anonymous`` key under your firewall. If
2727
you need to require users to be logged in for different sections of your

best_practices/tests.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ The built-in functional testing client is great, but it can't be used to
106106
test any JavaScript behavior on your pages. If you need to test this, consider
107107
using the `Mink`_ library from within PHPUnit.
108108

109-
Of course, if you have a heavy JavaScript front-end, you should consider using
110-
pure JavaScript-based testing tools.
109+
If you have a heavy JavaScript frontend, you should consider using pure
110+
JavaScript-based testing tools.
111111

112112
Learn More about Functional Tests
113113
---------------------------------

components/dom_crawler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The :class:`Symfony\\Component\\DomCrawler\\Crawler` class provides methods
3434
to query and manipulate HTML and XML documents.
3535

3636
An instance of the Crawler represents a set of :phpclass:`DOMElement` objects,
37-
which are basically nodes that you can traverse::
37+
which are nodes that can be traversed as follows::
3838

3939
use Symfony\Component\DomCrawler\Crawler;
4040

components/dotenv.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,12 @@ defined in previously loaded files:
8888
#. If there's a ``.env.$env.local`` file, this one is loaded. Otherwise, it falls
8989
back to ``.env.$env``.
9090

91-
This might look complicated at first glance but it gives you the opportunity to commit
92-
multiple environment-specific files that can then be adjusted to your local environment
93-
easily. Given you commit ``.env``, ``.env.test`` and ``.env.dev`` to represent different
94-
configuration settings for your environments, each of them can be adjusted by using
95-
``.env.local``, ``.env.test.local`` and ``.env.dev.local`` respectively.
91+
This might look complicated at first glance but it gives you the opportunity to
92+
commit multiple environment-specific files that can then be adjusted to your
93+
local environment. Given you commit ``.env``, ``.env.test`` and ``.env.dev`` to
94+
represent different configuration settings for your environments, each of them
95+
can be adjusted by using ``.env.local``, ``.env.test.local`` and
96+
``.env.dev.local`` respectively.
9697

9798
.. note::
9899

components/form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ You can disable CSRF protection per form using the ``csrf_protection`` option::
163163
Twig Templating
164164
~~~~~~~~~~~~~~~
165165

166-
If you're using the Form component to process HTML forms, you'll need a way
167-
to render your form as HTML form fields (complete with field values,
168-
errors, and labels). If you use `Twig`_ as your template engine, the Form
169-
component offers a rich integration.
166+
If you're using the Form component to process HTML forms, you'll need a way to
167+
render your form as HTML form fields (complete with field values, errors, and
168+
labels). If you use `Twig`_ as your template engine, the Form component offers a
169+
rich integration.
170170

171171
To use the integration, you'll need the twig bridge, which provides integration
172172
between Twig and several Symfony components:

components/http_foundation/session_testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Testing with Sessions
66
=====================
77

88
Symfony is designed from the ground up with code-testability in mind. In order
9-
to make your code which utilizes session easily testable, we provide two separate
10-
mock storage mechanisms for both unit testing and functional testing.
9+
to test your code which utilizes sessions, we provide two separate mock storage
10+
mechanisms for both unit testing and functional testing.
1111

1212
Testing code using real sessions is tricky because PHP's workflow state is global
1313
and it is not possible to have multiple concurrent sessions in the same PHP

0 commit comments

Comments
 (0)