Skip to content

Commit 4755345

Browse files
committed
Another collection of fixes: Typos, logic, formatting etc.
1 parent 8c33ddc commit 4755345

File tree

19 files changed

+44
-34
lines changed

19 files changed

+44
-34
lines changed

components/dependency_injection/workflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Compiler passes to allow Interaction between Bundles
6464
:ref:`Compiler passes <components-dependency-injection-compiler-passes>` are
6565
used to allow interaction between different bundles as they cannot affect
6666
each other's configuration in the extension classes. One of the main uses is
67-
to process tagged services, allowing bundles to register services to picked
67+
to process tagged services, allowing bundles to register services to be picked
6868
up by other bundles, such as Monolog loggers, Twig extensions and Data Collectors
6969
for the Web Profiler. Compiler passes are usually placed in the bundle's
7070
``DependencyInjection/Compiler`` directory.

components/http_foundation/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Sending the response to the client is then as simple as calling
322322
Setting Cookies
323323
~~~~~~~~~~~~~~~
324324

325-
The response cookies can be manipulated though the ``headers`` public
325+
The response cookies can be manipulated through the ``headers`` public
326326
attribute::
327327

328328
use Symfony\Component\HttpFoundation\Cookie;

components/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ An authorization decision will always be based on a few things:
2626
Each attribute stands for a certain right the user should have, e.g.
2727
``ROLE_ADMIN`` to make sure the user is an administrator.
2828
* An object (optional)
29-
Any object on which for which access control needs to be checked, like
29+
Any object for which access control needs to be checked, like
3030
an article or a comment object.
3131

3232
.. _components-security-access-decision-manager:

components/security/firewall.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ Flow: Firewall, Authentication, Authorization
127127
Hopefully you can now see a little bit about how the "flow" of the security
128128
context works:
129129

130-
#. the Firewall is registered as a listener on the ``kernel.request`` event;
131-
#. at the beginning of the request, the Firewall checks the firewall map
130+
#. The Firewall is registered as a listener on the ``kernel.request`` event;
131+
#. At the beginning of the request, the Firewall checks the firewall map
132132
to see if any firewall should be active for this URL;
133-
#. If a firewall is found in the map for this URL, its listeners are notified
134-
#. each listener checks to see if the current request contains any authentication
133+
#. If a firewall is found in the map for this URL, its listeners are notified;
134+
#. Each listener checks to see if the current request contains any authentication
135135
information - a listener may (a) authenticate a user, (b) throw an
136136
``AuthenticationException``, or (c) do nothing (because there is no
137137
authentication information on the request);

cookbook/controller/service.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ the route ``_controller`` value:
112112
113113
# app/config/routing.yml
114114
hello:
115-
pattern: /hello
115+
path: /hello
116116
defaults: { _controller: acme.hello.controller:indexAction }
117117
118118
.. code-block:: xml
119119
120120
<!-- app/config/routing.xml -->
121-
<route id="hello" pattern="/hello">
121+
<route id="hello" path="/hello">
122122
<default key="_controller">acme.hello.controller:indexAction</default>
123123
</route>
124124

cookbook/doctrine/registration_form.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,11 @@ Next, update your routes. If you're placing your routes inside your bundle
310310
311311
# src/Acme/AccountBundle/Resources/config/routing.yml
312312
account_register:
313-
pattern: /register
313+
path: /register
314314
defaults: { _controller: AcmeAccountBundle:Account:register }
315315
316316
account_create:
317-
pattern: /register/create
317+
path: /register/create
318318
defaults: { _controller: AcmeAccountBundle:Account:create }
319319
320320
.. code-block:: xml

reference/configuration/doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,6 @@ which is the first one defined or the one configured via the
405405
``default_connection`` parameter.
406406

407407
Each connection is also accessible via the ``doctrine.dbal.[name]_connection``
408-
service where ``[name]`` if the name of the connection.
408+
service where ``[name]`` is the name of the connection.
409409

410410
.. _DBAL documentation: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html

reference/configuration/swiftmailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ type
100100

101101
**type**: ``string`` **default**: ``file``
102102

103-
The method used to store spooled messages. Currently only ``file`` is supported.
104-
However, a custom spool should be possible by creating a service called
103+
The method used to store spooled messages. Valid values are ``memory`` and
104+
``file``. A custom spool should be possible by creating a service called
105105
``swiftmailer.spool.myspool`` and setting this value to ``myspool``.
106106

107107
path

reference/constraints/File.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ If set, the validator will check that the mime type of the underlying file
177177
is equal to the given mime type (if a string) or exists in the collection
178178
of given mime types (if an array).
179179

180-
You can find a list of existing mime types on the `IANA website`_
180+
You can find a list of existing mime types on the `IANA website`_.
181181

182182
maxSizeMessage
183183
~~~~~~~~~~~~~~

reference/constraints/Length.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ is used.
134134
minMessage
135135
~~~~~~~~~~
136136

137-
**type**: ``string`` **default**: ``This value is too short. It should have {{ limit }} characters or more.``.
137+
**type**: ``string`` **default**: ``This value is too short. It should have {{ limit }} characters or more.``
138138

139139
The message that will be shown if the underlying value's length is less than the `min`_ option.
140140

141141
maxMessage
142142
~~~~~~~~~~
143143

144-
**type**: ``string`` **default**: ``This value is too long. It should have {{ limit }} characters or less.``.
144+
**type**: ``string`` **default**: ``This value is too long. It should have {{ limit }} characters or less.``
145145

146146
The message that will be shown if the underlying value's length is more than the `max`_ option.
147147

0 commit comments

Comments
 (0)