Skip to content

Commit 66ee944

Browse files
epochblueweaverryan
authored andcommitted
Replace gendered pronouns with gender-neutral
For consistency sake, instances of "he", "she", "his", "hers", "his/hers", "he/she", etc were replaced with "they", "their", etc (or were removed all together in cases where they weren't necessary). Verb tenses should also have been corrected where changes were made.
1 parent 8d8a0e6 commit 66ee944

23 files changed

+49
-49
lines changed

book/http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ The resulting HTTP header will look like this:
474474

475475
Note that in HTTP versions before 1.1 the origin server wasn't required to
476476
send the ``Date`` header. Consequently the cache (e.g. the browser) might
477-
need to rely onto his local clock to evaluate the ``Expires`` header making
477+
need to rely on the local clock to evaluate the ``Expires`` header making
478478
the lifetime calculation vulnerable to clock skew. Another limitation
479479
of the ``Expires`` header is that the specification states that "HTTP/1.1
480480
servers should not send ``Expires`` dates more than one year in the future."

book/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ file:
341341
342342
Now, the vendor directory won't be committed to source control. This is fine
343343
(actually, it's great!) because when someone else clones or checks out the
344-
project, he/she can simply run the ``php composer.phar install`` script to
344+
project, they can simply run the ``php composer.phar install`` script to
345345
install all the necessary project dependencies.
346346

347347
.. _`enable ACL support`: https://help.ubuntu.com/community/FilePermissionsACLs

book/security.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Security
55
========
66

77
Security is a two-step process whose goal is to prevent a user from accessing
8-
a resource that he/she should not have access to.
8+
a resource that they should not have access to.
99

1010
In the first step of the process, the security system identifies who the user
1111
is by requiring the user to submit some sort of identification. This is called
@@ -165,7 +165,7 @@ Firewalls (Authentication)
165165

166166
When a user makes a request to a URL that's protected by a firewall, the
167167
security system is activated. The job of the firewall is to determine whether
168-
or not the user needs to be authenticated, and if he does, to send a response
168+
or not the user needs to be authenticated, and if they do, to send a response
169169
back to the user initiating the authentication process.
170170

171171
A firewall is activated when the URL of an incoming request matches the configured
@@ -217,7 +217,7 @@ If the credentials are valid, the original request can be re-tried.
217217
:align: center
218218

219219
In this example, the user ``ryan`` successfully authenticates with the firewall.
220-
But since ``ryan`` doesn't have the ``ROLE_ADMIN`` role, he's still denied
220+
But since ``ryan`` doesn't have the ``ROLE_ADMIN`` role, they're still denied
221221
access to ``/admin/foo``. Ultimately, this means that the user will see some
222222
sort of message indicating that access has been denied.
223223

@@ -1041,7 +1041,7 @@ Access Control Lists (ACLs): Securing Individual Database Objects
10411041
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10421042

10431043
Imagine you are designing a blog system where your users can comment on your
1044-
posts. Now, you want a user to be able to edit his own comments, but not
1044+
posts. Now, you want a user to be able to edit their own comments, but not
10451045
those of other users. Also, as the admin user, you yourself want to be able
10461046
to edit *all* comments.
10471047

@@ -1809,7 +1809,7 @@ a route so that you can use it to generate the URL:
18091809
As of Symfony 2.1, you *must* have a route that corresponds to your logout
18101810
path. Without this route, logging out will not work.
18111811

1812-
Once the user has been logged out, he will be redirected to whatever path
1812+
Once the user has been logged out, they will be redirected to whatever path
18131813
is defined by the ``target`` parameter above (e.g. the ``homepage``). For
18141814
more information on configuring the logout, see the
18151815
:doc:`Security Configuration Reference </reference/configuration/security>`.

book/templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ this classic example:
13621362

13631363
Hello <?php echo $name ?>
13641364

1365-
Imagine that the user enters the following code as his/her name:
1365+
Imagine the user enters the following code for their name:
13661366

13671367
.. code-block:: text
13681368

book/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ on that class. To do this, you can organize each constraint into one or more
694694
constraints.
695695

696696
For example, suppose you have a ``User`` class, which is used both when a
697-
user registers and when a user updates his/her contact information later:
697+
user registers and when a user updates their contact information later:
698698

699699
.. configuration-block::
700700

components/console/helpers/dialoghelper.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ if you want to know a bundle name, you can add this to your command::
4949
'AcmeDemoBundle'
5050
);
5151

52-
The user will be asked "Please enter the name of the bundle". She can type
53-
some name which will be returned by the ``ask`` method. If she leaves it empty,
52+
The user will be asked "Please enter the name of the bundle". They can type
53+
some name which will be returned by the ``ask`` method. If they leave it empty,
5454
the default value (``AcmeDemoBundle`` here) is returned.
5555

5656
Hiding the User's Response
@@ -120,8 +120,8 @@ function should also return the value of the user's input if the validation was
120120
You can set the max number of times to ask in the ``$attempts`` argument.
121121
If you reach this max number it will use the default value, which is given
122122
in the last argument. Using ``false`` means the amount of attempts is infinite.
123-
The user will be asked as long as he provides an invalid answer and will only
124-
be able to proceed if her input is valid.
123+
The user will be asked as long as they provide an invalid answer and will only
124+
be able to proceed if their input is valid.
125125

126126
Validating a Hidden Response
127127
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -184,7 +184,7 @@ The option which should be selected by default is provided with the fourth
184184
parameter. The default is ``null``, which means that no option is the default one.
185185

186186
If the user enters an invalid string, an error message is shown and the user
187-
is asked to provide the answer another time, until she enters a valid string
187+
is asked to provide the answer another time, until they enter a valid string
188188
or the maximum attempts is reached (which you can define in the fifth
189189
parameter). The default value for the attempts is ``false``, which means infinite
190190
attempts. You can define your own error message in the sixth parameter.

components/event_dispatcher/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Introduction
1111
Objected Oriented code has gone a long way to ensuring code extensibility. By
1212
creating classes that have well defined responsibilities, your code becomes
1313
more flexible and a developer can extend them with subclasses to modify their
14-
behaviors. But if he wants to share his changes with other developers who have
14+
behaviors. But if they want to share the changes with other developers who have
1515
also made their own subclasses, code inheritance is no longer the answer.
1616

1717
Consider the real-world example where you want to provide a plugin system for

components/security/authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Authenticating Users by their Username and Password
110110
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
111111

112112
An authentication provider will attempt to authenticate a user based on
113-
the credentials he provided. Usually these are a username and a password.
113+
the credentials they provided. Usually these are a username and a password.
114114
Most web applications store their user's username and a hash of the user's
115115
password combined with a randomly generated salt. This means that the average
116116
authentication would consist of fetching the salt and the hashed password
@@ -228,4 +228,4 @@ which should be used to encode this user's password::
228228
$user->getSalt());
229229

230230
.. _`CVE-2013-5750`: http://symfony.com/blog/cve-2013-5750-security-issue-in-fosuserbundle-login-form
231-
.. _`BasePasswordEncoder::checkPasswordLength`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php
231+
.. _`BasePasswordEncoder::checkPasswordLength`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php

components/security/firewall.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ firewall map will jump in.
101101

102102
The exception listener determines what happens next, based on the arguments
103103
it received when it was created. It may start the authentication procedure,
104-
perhaps ask the user to supply his credentials again (when he has only been
104+
perhaps ask the user to supply their credentials again (when they have only been
105105
authenticated based on a "remember-me" cookie), or transform the exception
106106
into an :class:`Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException`,
107107
which will eventually result in an "HTTP/1.1 403: Access Denied" response.
@@ -119,7 +119,7 @@ object and the exception by which the exception listener was triggered.
119119
The method should return a :class:`Symfony\\Component\\HttpFoundation\\Response`
120120
object. This could be, for instance, the page containing the login form or,
121121
in the case of Basic HTTP authentication, a response with a ``WWW-Authenticate``
122-
header, which will prompt the user to supply his username and password.
122+
header, which will prompt the user to supply their username and password.
123123

124124
Flow: Firewall, Authentication, Authorization
125125
---------------------------------------------

contributing/documentation/translations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Symfony2 documentation for a new language.
5858
As starting a translation is a lot of work, talk about your plan on the
5959
`Symfony docs mailing-list`_ and try to find motivated people willing to help.
6060

61-
When the team is ready, nominate a team manager; he will be responsible for
61+
When the team is ready, nominate a team manager; they will be responsible for
6262
the *master* repository.
6363

6464
Create the repository and copy the *English* documents.

cookbook/bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Modifying the configuration of another Bundle
504504
If you have multiple bundles that depend on each other, it may be useful
505505
to allow one ``Extension`` class to modify the configuration passed to another
506506
bundle's ``Extension`` class, as if the end-developer has actually placed that
507-
configuration in his/her ``app/config/config.yml`` file.
507+
configuration in their ``app/config/config.yml`` file.
508508

509509
For more details, see :doc:`/cookbook/bundles/prepend_extension`.
510510

cookbook/form/dynamic_form_modification.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ How to Dynamically Generate Forms based on user Data
169169

170170
Sometimes you want a form to be generated dynamically based not only on data
171171
from the form but also on something else - like some data from the current user.
172-
Suppose you have a social website where a user can only message people who
173-
are his friends on the website. In this case, a "choice list" of whom to message
172+
Suppose you have a social website where a user can only message people marked
173+
as friends on the website. In this case, a "choice list" of whom to message
174174
should only contain users that are the current user's friends.
175175

176176
Creating the Form Type

cookbook/form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Allowing "new" tags with the "prototype"
269269

270270
Allowing the user to dynamically add new tags means that you'll need to
271271
use some JavaScript. Previously you added two tags to your form in the controller.
272-
Now let the user add as many tag forms as he needs directly in the browser.
272+
Now let the user add as many tag forms as they need directly in the browser.
273273
This will be done through a bit of JavaScript.
274274

275275
The first thing you need to do is to let the form collection know that it will

cookbook/security/acl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the ACL system comes in.
2121
class will handle the logic behind the scenes, instead of the ACL system.
2222

2323
Imagine you are designing a blog system where your users can comment on your
24-
posts. Now, you want a user to be able to edit his own comments, but not those
24+
posts. Now, you want a user to be able to edit their own comments, but not those
2525
of other users; besides, you yourself want to be able to edit all comments. In
2626
this scenario, ``Comment`` would be the domain object that you want to
2727
restrict access to. You could take several approaches to accomplish this using

cookbook/security/custom_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ users, e.g. by filling in a login form. You can do this by adding a line to the
280280
281281
The value here should correspond with however the passwords were originally
282282
encoded when creating your users (however those users were created). When
283-
a user submits her password, the salt value is appended to the password and
283+
a user submits their password, the salt value is appended to the password and
284284
then encoded using this algorithm before being compared to the hashed password
285285
returned by your ``getPassword()`` method. Additionally, depending on your
286286
options, the password may be encoded multiple times and encoded to base64.

cookbook/security/entity_provider.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ layer is a piece of cake. Everything resides in the configuration of the
240240
:doc:`SecurityBundle </reference/configuration/security>` stored in the
241241
``app/config/security.yml`` file.
242242
243-
Below is an example of configuration where the user will enter his/her
243+
Below is an example of configuration where the user will enter their
244244
username and password via HTTP basic authentication. That information will
245245
then be checked against your User entity records in the database:
246246
@@ -408,12 +408,12 @@ Now, if you try to authenticate as a user who's ``is_active`` database field
408408
is set to 0, you won't be allowed.
409409
410410
The next session will focus on how to write a custom entity provider
411-
to authenticate a user with his username or his email address.
411+
to authenticate a user with their username or email address.
412412
413413
Authenticating Someone with a Custom Entity Provider
414414
----------------------------------------------------
415415
416-
The next step is to allow a user to authenticate with his username or his email
416+
The next step is to allow a user to authenticate with their username or email
417417
address as they are both unique in the database. Unfortunately, the native
418418
entity provider is only able to handle a single property to fetch the user from
419419
the database.
@@ -537,7 +537,7 @@ of the ``security.yml`` file.
537537
538538
By doing this, the security layer will use an instance of ``UserRepository`` and
539539
call its ``loadUserByUsername()`` method to fetch a user from the database
540-
whether he filled in his username or email address.
540+
whether they filled in their username or email address.
541541
542542
Managing Roles in the Database
543543
------------------------------
@@ -708,7 +708,7 @@ Improving Performance with a Join
708708
To improve performance and avoid lazy loading of roles when retrieving a user
709709
from the custom entity provider, you can use a Doctrine join to the roles
710710
relationship in the ``UserRepository::loadUserByUsername()`` method. This will
711-
fetch the user and his associated roles with a single query::
711+
fetch the user and their associated roles with a single query::
712712
713713
// src/Acme/UserBundle/Entity/UserRepository.php
714714
namespace Acme\UserBundle\Entity;
@@ -735,5 +735,5 @@ fetch the user and his associated roles with a single query::
735735
}
736736
737737
The ``QueryBuilder::leftJoin()`` method joins and fetches related roles from
738-
the ``AcmeUserBundle:User`` model class when a user is retrieved with his email
738+
the ``AcmeUserBundle:User`` model class when a user is retrieved by their email
739739
address or username.

cookbook/security/form_login.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can change where the login form redirects after a successful login using
2323
the various config options. By default the form will redirect to the URL the
2424
user requested (i.e. the URL which triggered the login form being shown).
2525
For example, if the user requested ``http://www.example.com/admin/post/18/edit``,
26-
then after she successfully logs in, she will eventually be sent back to
26+
then after they successfully log in, they will eventually be sent back to
2727
``http://www.example.com/admin/post/18/edit``.
2828
This is done by storing the requested URL in the session.
2929
If no URL is present in the session (perhaps the user went
@@ -33,7 +33,7 @@ in several ways.
3333

3434
.. note::
3535

36-
As mentioned, by default the user is redirected back to the page he originally
36+
As mentioned, by default the user is redirected back to the page originally
3737
requested. Sometimes, this can cause problems, like if a background Ajax
3838
request "appears" to be the last visited URL, causing the user to be
3939
redirected there. For information on controlling this behavior, see

cookbook/security/remember_me.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ the cookie remains valid.
112112
Forcing the User to Re-authenticate before accessing certain Resources
113113
----------------------------------------------------------------------
114114

115-
When the user returns to your site, he/she is authenticated automatically based
115+
When the user returns to your site, they are authenticated automatically based
116116
on the information stored in the remember me cookie. This allows the user
117117
to access protected resources as if the user had actually authenticated upon
118118
visiting the site.
@@ -195,16 +195,16 @@ which can secure your controller using annotations:
195195
* If a non-authenticated (or anonymously authenticated user) tries to
196196
access the account area, the user will be asked to authenticate.
197197

198-
* Once the user has entered his username and password, assuming the
198+
* Once the user has entered their username and password, assuming the
199199
user receives the ``ROLE_USER`` role per your configuration, the user
200200
will have the ``IS_AUTHENTICATED_FULLY`` role and be able to access
201201
any page in the account section, including the ``editAction`` controller.
202202

203-
* If the user's session ends, when the user returns to the site, he will
203+
* If the user's session ends, when the user returns to the site, they will
204204
be able to access every account page - except for the edit page - without
205-
being forced to re-authenticate. However, when he tries to access the
206-
``editAction`` controller, he will be forced to re-authenticate, since
207-
he is not, yet, fully authenticated.
205+
being forced to re-authenticate. However, when they try to access the
206+
``editAction`` controller, they will be forced to re-authenticate, since
207+
they are not, yet, fully authenticated.
208208

209209
For more information on securing services or methods in this way,
210210
see :doc:`/cookbook/security/securing_services`.

cookbook/security/target_path.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ How to change the Default Target Path Behavior
77
By default, the Security component retains the information of the last request
88
URI in a session variable named ``_security.main.target_path`` (with ``main`` being
99
the name of the firewall, defined in ``security.yml``). Upon a successful
10-
login, the user is redirected to this path, as to help her continue from the
11-
last known page she visited.
10+
login, the user is redirected to this path, as to help them continue from the
11+
last known page they visited.
1212

1313
On some occasions, this is unexpected. For example when the last request
1414
URI was an HTTP POST against a route which is configured to allow only a POST

cookbook/workflow/_vendor_deps.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ and download the exact same set of vendor libraries. This means that you're
5959
controlling exactly what each vendor library looks like, without needing to
6060
actually commit them to *your* repository.
6161

62-
So, whenever a developer uses your project, he/she should run the ``php composer.phar install``
62+
So, whenever a developer uses your project, they should run the ``php composer.phar install``
6363
script to ensure that all of the needed vendor libraries are downloaded.
6464

6565
.. sidebar:: Upgrading Symfony

reference/configuration/security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Each part will be explained in the next section.
117117
# submit the login form here
118118
check_path: /login_check
119119
120-
# the user is redirected here when he/she needs to log in
120+
# the user is redirected here when they need to log in
121121
login_path: /login
122122
123123
# if true, forward the user to the login form instead of redirecting
@@ -231,7 +231,7 @@ The Login Form and Process
231231

232232
* ``login_path`` (type: ``string``, default: ``/login``)
233233
This is the route or path that the user will be redirected to (unless
234-
``use_forward`` is set to ``true``) when he/she tries to access a
234+
``use_forward`` is set to ``true``) when they try to access a
235235
protected resource but isn't fully authenticated.
236236

237237
This path **must** be accessible by a normal, un-authenticated user, else

0 commit comments

Comments
 (0)