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

Commit f2a6772

Browse files
authored
Merge pull request #258 from manuxi/master
Use v2 service with options
2 parents 8133866 + 725007f commit f2a6772

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/Factory/EWZRecaptchaV2FormBuilderFactory.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ public function __construct(FormFactoryInterface $builder)
1515
$this->builder = $builder;
1616
}
1717

18-
public function get()
18+
public function get(array $options = array())
1919
{
20-
return $this->builder->createBuilder(EWZRecaptchaType::class, null, [
21-
'constraints' => array(
22-
new IsTrue(),
23-
),
24-
]);
20+
$constraint = array(
21+
'constraints' => array(
22+
new IsTrue(),
23+
),
24+
);
25+
26+
return $this->builder->createBuilder(EWZRecaptchaType::class, null, array_merge($options, $constraint));
2527
}
2628
}

0 commit comments

Comments
 (0)