diff --git a/README.md b/README.md index 3400bb0..8208a89 100644 --- a/README.md +++ b/README.md @@ -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(); } ```