Skip to content

Commit 0cf1828

Browse files
committed
[#3022][#3258] Tweaks thanks to @cordoval
1 parent 33676dc commit 0cf1828

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

book/routing.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ Completely Customized Route Matching with Conditions
728728

729729
As you've seen, a route can be made to match only certain routing wildcards
730730
(via regular expressions), HTTP methods, or host names. But the routing system
731-
can be extended to almost an infinite flexibility with ``conditions``:
731+
can be extended to have an almost infinite flexibility using ``conditions``:
732732

733733
.. configuration-block::
734734

@@ -775,13 +775,13 @@ can be extended to almost an infinite flexibility with ``conditions``:
775775
776776
return $collection;
777777
778-
The ``condition`` is an expression, and you can learn more about it syntax
778+
The ``condition`` is an expression, and you can learn more about its syntax
779779
here: :doc:`/components/expression_language/syntax`. With this, the route
780780
won't match unless the HTTP method is either GET or HEAD *and* if the ``User-Agent``
781781
header matches ``firefox``.
782782

783-
You can do any complex logic you need here by leveraging two variables that
784-
are passed into the expression:
783+
You can do any complex logic you need in the expression by leveraging two
784+
variables that are passed into the expression:
785785

786786
* ``context``: An instance of :class:`Symfony\\Component\\Routing\\RequestContext`,
787787
which holds the most fundamental information about the route being matched;
@@ -804,7 +804,7 @@ are passed into the expression:
804804
// ...
805805
}
806806

807-
Because of this, using the ``condition`` key causes no extra roverhead
807+
Because of this, using the ``condition`` key causes no extra overhead
808808
beyond the time it takes for the underlying PHP to execute.
809809

810810
.. index::

book/security.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ Inside the expression, you have access to a number of variables:
19811981
``isGranted`` ;
19821982
* ``token`` The token object;
19831983
* ``trust_resolver``: The :class:`Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface`,
1984-
object: probably not useful directly.
1984+
object: you'll probably use the ``is_*`` functions below instead.
19851985

19861986
Additionally, you have access to a number of functions inside the expression.
19871987
**Note**: some of these functions *look* similar to the ``IS_AUTHENTICATED_*``
@@ -2018,7 +2018,7 @@ attributes, but work differently. See the note below:
20182018
Here, ``$access1`` and ``$access2`` will be the same value. Unlike the
20192019
behavior of ``IS_AUTHENTICATED_REMEMBERED`` and ``IS_AUTHENTICATED_FULLY``,
20202020
the ``is_remember_me`` function *only* returns true if the user is authenticated
2021-
via a remember me cookie and ``is_fully_authenticated`` *only* returns
2021+
via a remember-me cookie and ``is_fully_authenticated`` *only* returns
20222022
true if the user has actually logged in during this session (i.e. is
20232023
full-fledged).
20242024

cookbook/expression/expressions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ ways:
2121
* :doc:`Validation </reference/constraints/Expression>`.
2222

2323
For more information about how to create and work with expressions, see
24-
:doc:`/components/expression_language/syntax`.
24+
:doc:`/components/expression_language/syntax`.

reference/constraints/Expression.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ expression that must return true in order for validation to pass. To learn
130130
more about the expression language syntax, see
131131
:doc:`/components/expression_language/syntax`.
132132

133-
For more information about the expression and what variables you have available
133+
For more information about the expression and what variables are available
134134
to you, see the :ref:`expression <reference-constraint-expression-option>`
135135
option details below.
136136

0 commit comments

Comments
 (0)