Skip to content

Commit 0ad9a9f

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [#12637] update after merging up remove additional blank line fix typo (backport #12653) Change the default mapping type to XML Add isMasterRequest method Update MySQL column type definition improve sentence re: `content-disposition` header ContainerAwareEventDispatcher was removed Add some links to objects injected by Symfony in expressions
2 parents 2ed38c4 + 285567d commit 0ad9a9f

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

components/event_dispatcher.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ Other Dispatchers
469469
Besides the commonly used ``EventDispatcher``, the component comes
470470
with 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

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+
* :ref:`Variables available in routing expressions <routing-matching-expressions>`.

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Serving Files
534534

535535
When sending a file, you must add a ``Content-Disposition`` header to your
536536
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
538538
:method:`Symfony\\Component\\HttpFoundation\\HeaderUtils::makeDisposition`
539539
abstracts the hard work behind a simple API::
540540

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::

doctrine/reverse_engineering.rst

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

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``

routing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
232234
Matching Expressions
233235
~~~~~~~~~~~~~~~~~~~~
234236

0 commit comments

Comments
 (0)