Merge 369e545133
into f69ee07ec0
This commit is contained in:
commit
45e01ff86f
|
@ -142,11 +142,10 @@ following pattern:
|
|||
|
||||
```php
|
||||
use SilverStripe\Forms\Form;
|
||||
use SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension;
|
||||
|
||||
$form = new Form(/* .. */);
|
||||
|
||||
if ($form->hasExtension(FormSpamProtectionExtension::class)) {
|
||||
if ($form->hasExtension('SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension')) {
|
||||
$form->enableSpamProtection();
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue