10000 Merge branch '4.1' · symfony/symfony-docs@b841679 · GitHub
[go: up one dir, main page]

Skip to content

Commit b841679

Browse files
committed
Merge branch '4.1'
* 4.1: Grammar fix [Webpack Encore] Fixed code display Update autowiring.rst
2 parents bc88b0a + b013b36 commit b841679

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

create_framework/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ explicitly trust your reverse proxies by calling ``setTrustedProxies()``::
264264

265265
So, the ``getClientIp()`` method works securely in all circumstances. You can
266266
use it in all your projects, whatever the configuration is, it will behave
267-
correctly and safely. That's one of the goal of using a framework. If you were
267+
correctly and safely. That's one of the goals of using a framework. If you were
268268
to write a framework from scratch, you would have to think about all these
269269
cases by yourself. Why not using a technology that already works?
270270

frontend/encore/split-chunks.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ The logic for *when* and *how* to split the files is controlled by the
5050
`SplitChunksPlugin from Webpack`_. You can control the configuration passed to
5151
this plugin with the ``configureSplitChunks()`` function:
5252

53-
.. code-block:: js
54-
5553
.. code-block:: diff
5654
5755
Encore

service_container/autowiring.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ Thanks to the ``App\Util\TransformerInterface`` alias, the autowiring subsystem
341341
knows that the ``App\Util\Rot13Transformer`` service should be injected when
342342
dealing with the ``TransformerInterface``.
343343

344+
.. tip::
345+
346+
As long as there is only one class implementing the interface and that class
347+
is part of the same namespace configuring the alias is not mandatory and Symfony
348+
will automatically create one.
349+
344350
Dealing with Multiple Implementations of the Same Type
345351
------------------------------------------------------
346352

0 commit comments

Comments
 (0)
0