Skip to content

Commit 0eb2531

Browse files
committed
Merge pull request #3174 from bicpi/another_fixing_typos_formatting_logic_collection
Another collection of fixes: Typos, Formatting, Logic, Links
2 parents 2811ac0 + fd0df44 commit 0eb2531

File tree

20 files changed

+49
-39
lines changed

20 files changed

+49
-39
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ 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
314-
defaults: { _controller: AcmeAccountBundle:Account:register }
313+
path: /register
314+
defaults: { _controller: AcmeAccountBundle:Account:register }
315315
316316
account_create:
317-
pattern: /register/create
318-
defaults: { _controller: AcmeAccountBundle:Account:create }
317+
path: /register/create
318+
defaults: { _controller: AcmeAccountBundle:Account:create }
319319
320320
.. code-block:: xml
321321

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/False.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ method returns **false**:
4545
Acme\BlogBundle\Entity\Author
4646
getters:
4747
stateInvalid:
48-
- "False":
48+
- 'False':
4949
message: You've entered an invalid state.
5050
5151
.. code-block:: php-annotations
@@ -103,8 +103,8 @@ method returns **false**:
103103
104104
.. caution::
105105

106-
When using YAML, be sure to surround ``False`` with quotes (``"False"``)
107-
or else YAML will convert this into a Boolean value.
106+
When using YAML, be sure to surround ``False`` with quotes (``'False'``)
107+
or else YAML will convert this into a ``false`` Boolean value.
108108

109109
Options
110110
-------

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
~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)