Skip to content

Commit 472f23e

Browse files
committed
minor #8266 Fix #8265: minor typo in code example (kastaneda)
This PR was merged into the 3.3 branch. Discussion ---------- Fix #8265: minor typo in code example Changed `setAutowire` to `setAutowired()` Commits ------- e844cd7 Fix #8265: minor typo in code example
2 parents 2b5f93b + e844cd7 commit 472f23e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,15 +1003,15 @@ admin email. In this case, each needs to have a unique service id:
10031003
use Symfony\Component\DependencyInjection\Reference;
10041004
10051005
$container->register('site_update_manager.superadmin', SiteUpdateManager::class)
1006-
->setAutowire(false)
1006+
->setAutowired(false)
10071007
->setArguments(array(
10081008
new Reference(MessageGenerator::class),
10091009
new Reference('mailer'),
10101010
'superadmin@example.com'
10111011
));
10121012
10131013
$container->register('site_update_manager.normal_users', SiteUpdateManager::class)
1014-
->setAutowire(false)
1014+
->setAutowired(false)
10151015
->setArguments(array(
10161016
new Reference(MessageGenerator::class),
10171017
new Reference('mailer'),

0 commit comments

Comments
 (0)