Skip to content

Commit 03114e1

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: -
2 parents 4c12cda + f1d067e commit 03114e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

service_container/autowiring.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ attribute like this::
565565
{
566566
public function __construct(
567567
#[Target('app.uppercase_transformer')]
568-
private TransformerInterface $transformer
568+
private TransformerInterface $transformer,
569569
){
570570
}
571571
}
@@ -602,7 +602,8 @@ logic about those arguments::
602602
class MessageGenerator
603603
{
604604
public function __construct(
605-
#[Autowire(service: 'monolog.logger.request')] LoggerInterface $logger
605+
#[Autowire(service: 'monolog.logger.request')]
606+
private LoggerInterface $logger,
606607
) {
607608
// ...
608609
}
@@ -689,7 +690,7 @@ attribute::
689690
{
690691
public function __construct(
691692
#[AutowireServiceClosure('third_party.remote_message_formatter')]
692-
private \Closure $messageFormatterResolver
693+
private \Closure $messageFormatterResolver,
693694
) {
694695
}
695696

@@ -719,7 +720,7 @@ create extra instances of a non-shared service::
719720
{
720721
public function __construct(
721722
#[AutowireCallable(service: 'third_party.remote_message_formatter', method: 'format')]
722-
private \Closure $formatCallable
723+
private \Closure $formatCallable,
723724
) {
724725
}
725726

0 commit comments

Comments
 (0)