Skip to content

Commit 6519bc8

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix dependency injection PHP sample code
2 parents b2a9392 + d6392af commit 6519bc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/dependency_injection.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ config files:
297297
->set('mailer.transport', 'sendmail')
298298
;
299299
300-
$container->services()
301-
->set('mailer', 'Mailer')
302-
->args(['%mailer.transport%'])
300+
$services = $container->services();
301+
$services->set('mailer', 'Mailer')
302+
->args(['%mailer.transport%'])
303303
304304
$services->set('mailer', 'Mailer')
305305
->args([param('mailer.transport')])

0 commit comments

Comments
 (0)