CoolCMS API

RuntimeReCaptchaBinding
in package

FinalYes

`$form->addInvisibleReCaptcha()` that picks the real or the disabled field when the form is built, not when the container is compiled — the operator can switch reCAPTCHA in the administration.

Services are resolved lazily inside the closure: binding runs in the container's initialize() on every request, including those that never build a form.

Table of Contents

Methods

bind()  : void

Methods

bind()

public static bind(Container $di, string $providerService) : void
Parameters
$di : Container
$providerService : string
On this page

Search results