diff --git a/src/Mcfedr/QueueManagerBundle/DependencyInjection/McfedrQueueManagerExtension.php b/src/Mcfedr/QueueManagerBundle/DependencyInjection/McfedrQueueManagerExtension.php index d5fe3aa..31d783d 100644 --- a/src/Mcfedr/QueueManagerBundle/DependencyInjection/McfedrQueueManagerExtension.php +++ b/src/Mcfedr/QueueManagerBundle/DependencyInjection/McfedrQueueManagerExtension.php @@ -107,9 +107,9 @@ public function load(array $configs, ContainerBuilder $container) if ($config['swift_mailer_batch_size'] >= 0 && class_exists('Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener')) { $swiftListener = new Definition('Mcfedr\QueueManagerBundle\Subscriber\SwiftMailerSubscriber', [ + $config['swift_mailer_batch_size'], new Reference('service_container'), new Reference('logger', ContainerInterface::NULL_ON_INVALID_REFERENCE), - $config['swift_mailer_batch_size'], ]); $swiftListener->setTags([ 'kernel.event_subscriber' => [],