Skip to content

Commit 9e6405b

Browse files
committed
Adding missing check for mailer
1 parent 9d0f356 commit 9e6405b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

DependencyInjection/Compiler/CheckForMailerPass.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function process(ContainerBuilder $container)
3232
return;
3333
}
3434

35+
// the mailer exists, so all is good
36+
if ($container->hasDefinition('mailer')) {
37+
return;
38+
}
39+
3540
if ($container->findDefinition('fos_user.mailer')->hasTag('fos_user.requires_swift')) {
3641
$message = 'A feature you activated in FOSUserBundle requires the "mailer" service to be available.';
3742

0 commit comments

Comments
 (0)