FIX incorrect instruction

This commit is contained in:
Reece Alexander 2018-02-12 21:47:11 +10:00 committed by GitHub
parent f69ee07ec0
commit 369e545133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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