File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +27
-2
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 @@ -211,7 +211,7 @@ Methods to Change Case
211
211
The methods of all string classes are case-sensitive by default. You can perform
212
212
case-insensitive operations with the ``ignoreCase() `` method::
213
213
214
- u('abc')->indexOf('B'); // null
214
+ u('abc')->indexOf('B'); // null
215
215
u('abc')->ignoreCase()->indexOf('B'); // 1
216
216
217
217
Methods to Append and Prepend
Original file line number Diff line number Diff line change @@ -266,6 +266,13 @@ 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
+
269
276
The exceptions related to mailer transports (those which implement
270
277
:class: `Symfony\\ Component\\ Mailer\\ Exception\\ TransportException `) also provide
271
278
this debug information via the ``getDebug() `` method.
Original file line number Diff line number Diff line change @@ -784,6 +784,24 @@ 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
+ The ``lint:container `` command checks that the arguments injected into services
791
+ match their type declarations. It's useful to run it before deploying your
792
+ application to production (e.g. in your continuous integration server):
793
+
794
+ .. code-block :: terminal
795
+
796
+ $ php bin/console lint:container
797
+
798
+ Checking the types of all service arguments whenever the container is compiled
799
+ can hurt performance. That's why this type checking is implemented in a
800
+ :doc: `compiler pass </service_container/compiler_passes >` called
801
+ ``CheckTypeDeclarationsPass `` which is disabled by default and enabled only when
802
+ executing the ``lint:container `` command. If you don't mind the performance
803
+ loss, enable the compiler pass in your application.
804
+
787
805
.. _container-public :
788
806
789
807
Public Versus Private Services
You can’t perform that action at this time.
0 commit comments