Skip to content

Commit 5e6fe63

Browse files
committed
only replace argument if mailer is present
1 parent 8b52da0 commit 5e6fe63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,9 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
19411941

19421942
// as we have a bus, the channels don't need the transports
19431943
$container->getDefinition('notifier.channel.chat')->setArgument(0, null);
1944-
$container->getDefinition('notifier.channel.email')->setArgument(0, null);
1944+
if ($container->hasDefinition('notifier.channel.email')) {
1945+
$container->getDefinition('notifier.channel.email')->setArgument(0, null);
1946+
}
19451947
$container->getDefinition('notifier.channel.sms')->setArgument(0, null);
19461948
}
19471949

0 commit comments

Comments
 (0)