8000 minor #10872 Update injection_types.rst (atailouloute) · symfony/symfony-docs@ab46c17 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab46c17

Browse files
committed
minor #10872 Update injection_types.rst (atailouloute)
This PR was merged into the 4.1 branch. Discussion ---------- Update injection_types.rst Use the FQCN like the YAML example. Commits ------- 3171f8a Update injection_types.rst
2 parents 609ce17 + 3171f8a commit ab46c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/injection_types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ service container configuration:
6060
<services>
6161
<!-- ... -->
6262
63-
<service id="app.newsletter_manager" class="App\Mail\NewsletterManager">
63+
<service id="App\Mail\NewsletterManager">
6464
<argument type="service" id="mailer"/>
6565
</service>
6666
</services>
@@ -73,7 +73,7 @@ service container configuration:
7373
use Symfony\Component\DependencyInjection\Reference;
7474
7575
// ...
76-
$container->register('app.newsletter_manager', NewsletterManager::class)
76+
$container->register(NewsletterManager::class)
7777
->addArgument(new Reference('mailer'));
7878
7979
.. tip::

0 commit comments

Comments
 (0)
0