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 f6830ac

Browse filesBrowse files
committed
Merge branch '5.0'
* 5.0: Removed old versionadded directives Typo in command name. refs #12785 Fix build error Remove superfluous space [Mailer] Mentioned the getMessageId() method [DI] Documented the lint:container command
2 parents 885fff4 + b04c20b commit f6830ac
Copy full SHA for f6830ac

File tree

Expand file treeCollapse file tree

4 files changed

+27
-2
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+27
-2
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

‎components/string.rst

Copy file name to clipboardExpand all lines: components/string.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Methods to Change Case
211211
The methods of all string classes are case-sensitive by default. You can perform
212212
case-insensitive operations with the ``ignoreCase()`` method::
213213

214-
u('abc')->indexOf('B'); // null
214+
u('abc')->indexOf('B'); // null
215215
u('abc')->ignoreCase()->indexOf('B'); // 1
216216

217217
Methods to Append and Prepend

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ 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+
269276
The exceptions related to mailer transports (those which implement
270277
:class:`Symfony\\Component\\Mailer\\Exception\\TransportException`) also provide
271278
this debug information via the ``getDebug()`` method.

‎service_container.rst

Copy file name to clipboardExpand all lines: service_container.rst
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,24 @@ 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+
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+
787805
.. _container-public:
788806

789807
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.