Skip to content

Commit 076ea3d

Browse files
committed
-
1 parent a619916 commit 076ea3d

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
}
@@ -697,7 +698,7 @@ attribute::
697698
{
698699
public function __construct(
699700
#[AutowireServiceClosure('third_party.remote_message_formatter')]
700-
private \Closure $messageFormatterResolver
701+
private \Closure $messageFormatterResolver,
701702
) {
702703
}
703704

@@ -732,7 +733,7 @@ create extra instances of a non-shared service::
732733
{
733734
public function __construct(
734735
#[AutowireCallable(service: 'third_party.remote_message_formatter', method: 'format')]
735-
private \Closure $formatCallable
736+
private \Closure $formatCallable,
736737
) {
737738
}
738739

0 commit comments

Comments
 (0)