Skip to content

Commit c9caef6

Browse files
author
Xavier Coureau
committed
Fixed case where definition service is an alias
Added exception catch Changed methods used Revert
1 parent e5dbd49 commit c9caef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dependency_injection/tags.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ custom tag::
133133
{
134134
public function process(ContainerBuilder $container)
135135
{
136-
if (!$container->hasDefinition('acme_mailer.transport_chain')) {
136+
if (!$container->has('acme_mailer.transport_chain')) {
137137
return;
138138
}
139139

140-
$definition = $container->getDefinition(
140+
$definition = $container->findDefinition(
141141
'acme_mailer.transport_chain'
142142
);
143143

0 commit comments

Comments
 (0)