diff --git a/Form/Extension/Spam/EventListener/HoneypotValidationListener.php b/Form/Extension/Spam/EventListener/HoneypotValidationListener.php
index 815f009..656128d 100644
--- a/Form/Extension/Spam/EventListener/HoneypotValidationListener.php
+++ b/Form/Extension/Spam/EventListener/HoneypotValidationListener.php
@@ -15,7 +15,7 @@ class HoneypotValidationListener implements EventSubscriberInterface
private $fieldName;
private $errorMessage;
- public function __construct(TranslatorInterface $translator,
+ public function __construct(TranslatorInterface $translator = null,
$translationDomain,
$fieldName,
$errorMessage)
diff --git a/Form/Extension/Spam/EventListener/TimedSpamValidationListener.php b/Form/Extension/Spam/EventListener/TimedSpamValidationListener.php
index f7709d0..c868c17 100644
--- a/Form/Extension/Spam/EventListener/TimedSpamValidationListener.php
+++ b/Form/Extension/Spam/EventListener/TimedSpamValidationListener.php
@@ -18,7 +18,7 @@ class TimedSpamValidationListener implements EventSubscriberInterface
private $options;
public function __construct(TimedSpamProviderInterface $timeProvider,
- TranslatorInterface $translator,
+ TranslatorInterface $translator = null,
$translationDomain,
$errorMessage,
$options)
diff --git a/Form/Extension/Spam/Type/FormTypeHoneypotExtension.php b/Form/Extension/Spam/Type/FormTypeHoneypotExtension.php
index 5897214..d905586 100644
--- a/Form/Extension/Spam/Type/FormTypeHoneypotExtension.php
+++ b/Form/Extension/Spam/Type/FormTypeHoneypotExtension.php
@@ -19,7 +19,7 @@ class FormTypeHoneypotExtension extends AbstractTypeExtension
private $translationDomain;
private $defaults;
- public function __construct(TranslatorInterface $translator,
+ public function __construct(TranslatorInterface $translator = null,
$translationDomain,
array $defaults)
{
diff --git a/Form/Extension/Spam/Type/FormTypeTimedSpamExtension.php b/Form/Extension/Spam/Type/FormTypeTimedSpamExtension.php
index a34182f..e284099 100644
--- a/Form/Extension/Spam/Type/FormTypeTimedSpamExtension.php
+++ b/Form/Extension/Spam/Type/FormTypeTimedSpamExtension.php
@@ -21,7 +21,7 @@ class FormTypeTimedSpamExtension extends AbstractTypeExtension
private $defaults;
public function __construct(TimedSpamProviderInterface $timeProvider,
- TranslatorInterface $translator,
+ TranslatorInterface $translator = null,
$translationDomain,
array $defaults)
{
diff --git a/Resources/config/honeypot.xml b/Resources/config/honeypot.xml
index 9c68541..5faf003 100644
--- a/Resources/config/honeypot.xml
+++ b/Resources/config/honeypot.xml
@@ -7,7 +7,7 @@
-
+
%validator.translation_domain%
diff --git a/Resources/config/timed.xml b/Resources/config/timed.xml
index 57ed607..665ca57 100644
--- a/Resources/config/timed.xml
+++ b/Resources/config/timed.xml
@@ -12,7 +12,7 @@
-
+
%validator.translation_domain%