Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6a970b

Browse filesBrowse files
committed
Merge branch '4.4' into 5.0
* 4.4: Typo in command name. refs #12785 Fix build error [Mailer] Mentioned the getMessageId() method [DI] Documented the lint:container command
2 parents 2134f22 + 390e54b commit e6a970b
Copy full SHA for e6a970b

File tree

Expand file treeCollapse file tree

3 files changed

+34
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+34
-1
lines changed

‎components/phpunit_bridge.rst

Copy file name to clipboardExpand all lines: components/phpunit_bridge.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Deprecation Notices at Autoloading Time
311311
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312312

313313
By default, the PHPUnit Bridge uses ``DebugClassLoader`` from the
314-
:doc:`ErrorHandler component </components/error_handler>`_ to throw deprecation
314+
:doc:`ErrorHandler component </components/error_handler>` to throw deprecation
315315
notices at class autoloading time. This can be disabled with the
316316
``debug-class-loader`` option.
317317

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ provides access to the original message (``getOriginalMessage()``) and to some
266266
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
267267
transports, which is useful to debug errors.
268268

269+
.. note::
270+
271+
Some mailer providers change the ``Message-Id`` when sending the email. The
272+
``getMessageId()`` method from ``SentMessage`` always returns the definitive
273+
ID of the message (being the original random ID generated by Symfony or the
274+
new ID generated by the mailer provider).
275+
276+
.. versionadded:: 4.4
277+
278+
The ``getMessageId()`` method was introduced in Symfony 4.4.
279+
269280
The exceptions related to mailer transports (those which implement
270281
:class:`Symfony\\Component\\Mailer\\Exception\\TransportException`) also provide
271282
this debug information via the ``getDebug()`` method.

‎service_container.rst

Copy file name to clipboardExpand all lines: service_container.rst
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,28 @@ you don't need to do *anything*: the service will be automatically loaded. Then,
784784
implements ``Twig\Extension\ExtensionInterface``. And thanks to ``autowire``, you can even add
785785
constructor arguments without any configuration.
786786

787+
Linting Service Definitions
788+
---------------------------
789+
790+
.. versionadded:: 4.4
791+
792+
The ``lint:container`` command was introduced in Symfony 4.4.
793+
794+
The ``lint:container`` command checks that the arguments injected into services
795+
match their type declarations. It's useful to run it before deploying your
796+
application to production (e.g. in your continuous integration server):
797+
798+
.. code-block:: terminal
799+
800+
$ php bin/console lint:container
801+
802+
Checking the types of all service arguments whenever the container is compiled
803+
can hurt performance. That's why this type checking is implemented in a
804+
:doc:`compiler pass </service_container/compiler_passes>` called
805+
``CheckTypeDeclarationsPass`` which is disabled by default and enabled only when
806+
executing the ``lint:container`` command. If you don't mind the performance
807+
loss, enable the compiler pass in your application.
808+
787809
.. _container-public:
788810

789811
Public Versus Private Services

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.