Skip to content

Commit 4ce520a

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: remove additional blank line fix typo (backport #12653) Add isMasterRequest method Update MySQL column type definition Add some links to objects injected by Symfony in expressions
2 parents 36aa84b + 0fe1628 commit 4ce520a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

components/expression_language/syntax.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
* :doc:`Variables available in routing expressions </routing/conditions>`.

doctrine/pdo_session_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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::

reference/events.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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``

0 commit comments

Comments
 (0)