diff --git a/components/dependency_injection/tags.rst b/components/dependency_injection/tags.rst index b8442c3b933..3bb349517f2 100644 --- a/components/dependency_injection/tags.rst +++ b/components/dependency_injection/tags.rst @@ -133,11 +133,11 @@ custom tag:: { public function process(ContainerBuilder $container) { - if (!$container->hasDefinition('acme_mailer.transport_chain')) { + if (!$container->has('acme_mailer.transport_chain')) { return; } - $definition = $container->getDefinition( + $definition = $container->findDefinition( 'acme_mailer.transport_chain' );
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: