Skip to content

Commit cd92345

Browse files
committed
minor #20261 [DependencyInjection] Fix code example (MrYamous)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- [DependencyInjection] Fix code example Fix code example, property double declaration with constructor property promotion Commits ------- bfaa54a service-container/fix-code-example
2 parents c5a4079 + bfaa54a commit cd92345

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

service_container.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,11 @@ example, suppose you want to make the admin email configurable:
407407
class SiteUpdateManager
408408
{
409409
// ...
410-
+ private string $adminEmail;
411410
412411
public function __construct(
413412
private MessageGenerator $messageGenerator,
414413
private MailerInterface $mailer,
415-
+ private string $adminEmail
414+
+ private string $adminEmail
416415
) {
417416
}
418417

0 commit comments

Comments
 (0)