From 369e5451330fceb696f8dc00e64554fe79635ad3 Mon Sep 17 00:00:00 2001 From: Reece Alexander Date: Mon, 12 Feb 2018 21:47:11 +1000 Subject: [PATCH] FIX incorrect instruction --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } ```