File tree 7 files changed +20
-5
lines changed
7 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,6 @@ Other Dispatchers
469
469
Besides the commonly used ``EventDispatcher ``, the component comes
470
470
with some other dispatchers:
471
471
472
- * :doc: `/components/event_dispatcher/container_aware_dispatcher `
473
472
* :doc: `/components/event_dispatcher/immutable_dispatcher `
474
473
* :doc: `/components/event_dispatcher/traceable_dispatcher `
475
474
Original file line number Diff line number Diff line change @@ -308,3 +308,14 @@ Ternary Operators
308
308
* ``foo ? 'yes' : 'no' ``
309
309
* ``foo ?: 'no' `` (equal to ``foo ? foo : 'no' ``)
310
310
* ``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
534
534
535
535
When sending a file, you must add a ``Content-Disposition `` header to your
536
536
response. 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
538
538
:method: `Symfony\\ Component\\ HttpFoundation\\ HeaderUtils::makeDisposition `
539
539
abstracts the hard work behind a simple API::
540
540
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ MySQL
218
218
`sess_id` VARCHAR(128) NOT NULL PRIMARY KEY,
219
219
`sess_data` BLOB NOT NULL,
220
220
`sess_time` INTEGER UNSIGNED NOT NULL,
221
- `sess_lifetime` MEDIUMINT NOT NULL
221
+ `sess_lifetime` INTEGER UNSIGNED NOT NULL
222
222
) COLLATE utf8mb4_bin, ENGINE = InnoDB;
223
223
224
224
.. note ::
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ files: ``BlogPost.php`` and ``BlogComment.php``.
64
64
65
65
.. tip ::
66
66
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:
68
68
69
69
.. code-block :: terminal
70
70
@@ -82,7 +82,7 @@ files: ``BlogPost.php`` and ``BlogComment.php``.
82
82
mappings :
83
83
App :
84
84
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
86
86
dir : ' %kernel.project_dir%/config/doctrine'
87
87
prefix : ' App\Entity'
88
88
alias : App
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ following information:
23
23
:method: `Symfony\\ Component\\ HttpKernel\\ Event\\ KernelEvent::getRequest `
24
24
Returns the current ``Request `` being handled.
25
25
26
+ :method: `Symfony\\ Component\\ HttpKernel\\ Event\\ KernelEvent::isMasterRequest `
27
+ Checks if this is a master request.
28
+
26
29
.. _kernel-core-request :
27
30
28
31
``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:
229
229
If you create your forms with :doc: `Symfony Forms </forms >` this is done
230
230
automatically for you.
231
231
232
+ .. _routing-matching-expressions :
233
+
232
234
Matching Expressions
233
235
~~~~~~~~~~~~~~~~~~~~
234
236
You can’t perform that action at this time.
0 commit comments