File tree Expand file tree Collapse file tree 7 files changed +20
-5
lines changed Expand file tree Collapse file tree 7 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,6 @@ Other Dispatchers
469469Besides the commonly used ``EventDispatcher ``, the component comes
470470with some other dispatchers:
471471
472- * :doc: `/components/event_dispatcher/container_aware_dispatcher `
473472* :doc: `/components/event_dispatcher/immutable_dispatcher `
474473* :doc: `/components/event_dispatcher/traceable_dispatcher `
475474
Original file line number Diff line number Diff line change @@ -308,3 +308,14 @@ Ternary Operators
308308* ``foo ? 'yes' : 'no' ``
309309* ``foo ?: 'no' `` (equal to ``foo ? foo : 'no' ``)
310310* ``foo ? 'yes' `` (equal to ``foo ? 'yes' : '' ``)
311+
312+ Built-in Objects and Variables
313+ ------------------------------
314+
315+ When using this component inside a Symfony application, certain objects and
316+ variables are automatically injected by Symfony so you can use them in your
317+ expressions (e.g. the request, the current user, etc.):
318+
319+ * :doc: `Variables available in security expressions </security/expressions >`;
320+ * :doc: `Variables available in service container expressions </service_container/expression_language >`;
321+ * :ref: `Variables available in routing expressions <routing-matching-expressions >`.
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ Serving Files
534534
535535When sending a file, you must add a ``Content-Disposition `` header to your
536536response. While creating this header for basic file downloads is straightforward,
537- using non-ASCII filenames is more involving . The
537+ using non-ASCII filenames is more involved . The
538538:method: `Symfony\\ Component\\ HttpFoundation\\ HeaderUtils::makeDisposition `
539539abstracts the hard work behind a simple API::
540540
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ MySQL
218218 `sess_id` VARCHAR(128) NOT NULL PRIMARY KEY,
219219 `sess_data` BLOB NOT NULL,
220220 `sess_time` INTEGER UNSIGNED NOT NULL,
221- `sess_lifetime` MEDIUMINT NOT NULL
221+ `sess_lifetime` INTEGER UNSIGNED NOT NULL
222222 ) COLLATE utf8mb4_bin, ENGINE = InnoDB;
223223
224224 .. note ::
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ files: ``BlogPost.php`` and ``BlogComment.php``.
6464
6565.. tip ::
6666
67- It's also possible to generate the metadata files into XML or YAML:
67+ It's also possible to generate the metadata files into XML or eventually into YAML:
6868
6969 .. code-block :: terminal
7070
@@ -82,7 +82,7 @@ files: ``BlogPost.php`` and ``BlogComment.php``.
8282 mappings :
8383 App :
8484 is_bundle : false
85- type : yml # Set to xml in case of XML mapping
85+ type : xml # "yml" is marked as deprecated for doctrine v2.6+ and will be removed in v3
8686 dir : ' %kernel.project_dir%/config/doctrine'
8787 prefix : ' App\Entity'
8888 alias : App
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ following information:
2323:method: `Symfony\\ Component\\ HttpKernel\\ Event\\ KernelEvent::getRequest `
2424 Returns the current ``Request `` being handled.
2525
26+ :method: `Symfony\\ Component\\ HttpKernel\\ Event\\ KernelEvent::isMasterRequest `
27+ Checks if this is a master request.
28+
2629.. _kernel-core-request :
2730
2831``kernel.request ``
Original file line number Diff line number Diff line change @@ -229,6 +229,8 @@ Use the ``methods`` option to restrict the verbs each route should respond to:
229229 If you create your forms with :doc: `Symfony Forms </forms >` this is done
230230 automatically for you.
231231
232+ .. _routing-matching-expressions :
233+
232234Matching Expressions
233235~~~~~~~~~~~~~~~~~~~~
234236
You can’t perform that action at this time.
0 commit comments