This commit is contained in:
Reece Alexander 2018-02-12 11:48:05 +00:00 committed by GitHub
commit 45e01ff86f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}
```