Skip to content

Commit 98abff5

Browse files
committed
Add redirections
1 parent e201bb6 commit 98abff5

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

_build/redirection_map

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,3 +538,5 @@
538538
/components/security /security
539539
/components/var_dumper/advanced /components/var_dumper#advanced-usage
540540
/components/yaml/yaml_format /components/yaml#yaml-format
541+
/components/expression_language/syntax /components/expression_language#expression-language-syntax
542+
/components/expression_language/extending /components/expression_language#expression-language-extending

components/expression_language.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ The main class of the component is
7373

7474
var_dump($expressionLanguage->compile('1 + 2')); // displays (1 + 2)
7575

76+
.. _expression-language-syntax:
77+
7678
.. index::
7779
single: Syntax; ExpressionLanguage
7880

@@ -190,7 +192,7 @@ This will print out ``root``.
190192
.. tip::
191193

192194
To read how to register your own functions to use in an expression, see
193-
":doc:`/components/expression_language/extending`".
195+
":ref:`expression-language-extending`".
194196

195197
.. _component-expression-arrays:
196198

@@ -540,6 +542,8 @@ method to turn the AST into an array::
540542
->toArray()
541543
;
542544

545+
.. _expression-language-extending:
546+
543547
.. index::
544548
single: Extending; ExpressionLanguage
545549

reference/constraints/Expression.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ One way to accomplish this is with the Expression constraint:
141141
The :ref:`expression <reference-constraint-expression-option>` option is the
142142
expression that must return true in order for validation to pass. To learn
143143
more about the expression language syntax, see
144-
:doc:`/components/expression_language/syntax`.
144+
:ref:`expression-language-syntax`.
145145

146146
.. sidebar:: Mapping the Error to a Specific Field
147147

@@ -265,7 +265,7 @@ The expression that will be evaluated. If the expression evaluates to a false
265265
value (using ``==``, not ``===``), validation will fail.
266266

267267
To learn more about the expression language syntax, see
268-
:doc:`/components/expression_language/syntax`.
268+
:ref:`expression-language-syntax`.
269269

270270
Inside of the expression, you have access to up to 2 variables:
271271

routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ arbitrary matching logic:
414414
;
415415
};
416416
417-
The value of the ``condition`` option is any valid
418-
:doc:`ExpressionLanguage expression </components/expression_language/syntax>`
419-
and can use any of these variables created by Symfony:
417+
The value of the ``condition`` option is any valid :ref:`ExpressionLanguage
418+
expression <expression-language-syntax>` and can use any of these variables
419+
created by Symfony:
420420

421421
``context``
422422
An instance of :class:`Symfony\\Component\\Routing\\RequestContext`,

security/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ be granted (note: your User object may not have an ``isSuperAdmin()`` method,
3737
that method is invented for this example).
3838

3939
This uses an expression and you can learn more about the expression language
40-
syntax, see :doc:`/components/expression_language/syntax`.
40+
syntax, see :ref:`expression-language-syntax`.
4141

4242
.. _security-expression-variables:
4343

service_container/expression_language.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ to another service: ``App\Mailer``. One way to do this is with an expression:
7171
->args([expr("service('App\\\\Mail\\\\MailerConfiguration').getMailerMethod()")]);
7272
};
7373
74-
To learn more about the expression language syntax, see :doc:`/components/expression_language/syntax`.
74+
To learn more about the expression language syntax, see :ref:`expression-language-syntax`.
7575

7676
In this context, you have access to 2 functions:
7777

0 commit comments

Comments
 (0)