File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ Deprecation Notices at Autoloading Time
311
311
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312
312
313
313
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
315
315
notices at class autoloading time. This can be disabled with the
316
316
``debug-class-loader `` option.
317
317
Original file line number Diff line number Diff line change @@ -266,6 +266,17 @@ provides access to the original message (``getOriginalMessage()``) and to some
266
266
debug information (``getDebug() ``) such as the HTTP calls done by the HTTP
267
267
transports, which is useful to debug errors.
268
268
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
+
269
280
The exceptions related to mailer transports (those which implement
270
281
:class: `Symfony\\ Component\\ Mailer\\ Exception\\ TransportException `) also provide
271
282
this debug information via the ``getDebug() `` method.
Original file line number Diff line number Diff line change @@ -784,6 +784,28 @@ you don't need to do *anything*: the service will be automatically loaded. Then,
784
784
implements ``Twig\Extension\ExtensionInterface ``. And thanks to ``autowire ``, you can even add
785
785
constructor arguments without any configuration.
786
786
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
+
787
809
.. _container-public :
788
810
789
811
Public Versus Private Services
You can’t perform that action at this time.
0 commit comments