Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit c5340f6

Browse files
Fix compatibility to older symfony version
1 parent 8ec70d6 commit c5340f6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/DependencyInjection/EWZRecaptchaExtension.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Symfony\Component\DependencyInjection\Loader;
1010
use Symfony\Component\DependencyInjection\Reference;
1111
use Symfony\Component\Form\FormBuilderInterface;
12-
use Symfony\Component\Form\FormFactoryInterface;
1312
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1413

1514
/**
@@ -41,10 +40,10 @@ public function load(array $configs, ContainerBuilder $container)
4140

4241
if (3 == $config['version']) {
4342
$container->register('ewz_recaptcha.form_builder_factory', EWZRecaptchaV3FormBuilderFactory::class)
44-
->addArgument(new Reference(FormFactoryInterface::class));
43+
->addArgument(new Reference('form.factory'));
4544
} else {
4645
$container->register('ewz_recaptcha.form_builder_factory', EWZRecaptchaV2FormBuilderFactory::class)
47-
->addArgument(new Reference(FormFactoryInterface::class));
46+
->addArgument(new Reference('form.factory'));
4847
}
4948

5049
foreach ($config['service_definition'] as $serviceDefinition) {

0 commit comments

Comments
 (0)