Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ad96fd

Browse files
committed
adjustments
1 parent 9c6baa3 commit 3ad96fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ command:
225225
226226
.. tip::
227227

228-
If you need control over the *exact* value of an argument, you can use the
229-
``#[Autowire]`` attribute::
228+
If you need control over the *exact* value of an argument, or require a parameter,
229+
you can use the ``#[Autowire]`` attribute::
230230

231231
// ...
232232
use Psr\Log\LoggerInterface;

service_container/autowiring.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ To fix this, you can :ref:`manually wire the problematic argument <services-manu
545545
in the service configuration. You wire up only the difficult arguments,
546546
Symfony takes care of the rest.
547547

548-
You can also use the ``#[Autowire]`` parameter attribute to configure the
549-
problematic arguments:
548+
You can also use the ``#[Autowire]`` parameter attribute to instruct the autowiring
549+
logic about those arguments:
550550

551551
// src/Service/MessageGenerator.php
552552
namespace App\Service;

0 commit comments

Comments
 (0)