-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Final additions: Expression language framework docs #3258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ac15bf5
be86fef
d72759a
33676dc
0cf1828
bc22f16
0000250
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. index:: | ||
single: Expressions in the Framework | ||
|
||
How to use Expressions in Security, Routing, Services, and Validation | ||
===================================================================== | ||
|
||
.. versionadded:: 2.4 | ||
The expression functionality was introduced in Symfony 2.4. | ||
|
||
In Symfony 2.4, a powerful :doc:`ExpressionLanguage </components/expression_language/introduction>` | ||
component was added to Symfony. This allows us to add highly customized | ||
logic inside configuration. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wonder if we should add a note on how to use or inject expressions, if need be, to other services besides these explicit here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think over time we will start to think of other uses for the expression language, and when we do, we should certainly add more cookbook entries. But fortunately, for right now, we just need to make sure the basic docs are present. |
||
|
||
The Symfony Framework leverages expressions out of the box in the following | ||
ways: | ||
|
||
* :ref:`Configuring services <book-services-expressions>`; | ||
* :ref:`Route matching conditions <book-routing-conditions>`; | ||
* :ref:`Checking security <book-security-expressions>` and | ||
:ref:`access controls with allow_if <book-security-allow-if>`; | ||
* :doc:`Validation </reference/constraints/Expression>`. | ||
|
||
For more information about how to create and work with expressions, see | ||
:doc:`/components/expression_language/syntax`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. php-cs-fixer |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Expressions | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
expressions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, they are not regular expressions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirements
in routes are regular expressions, or am I missing something?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, maybe the sentence is confusing :) "to match only certain routing wildcards" I thought you meaned the
path
option, not therequirements
option