From b757c3dc6d42da845b43569a35f76be50d11e867 Mon Sep 17 00:00:00 2001 From: Simon Erkelens Date: Mon, 10 Oct 2016 18:44:28 +1300 Subject: [PATCH] SilverStripe 4 and Namespacing --- _config.php | 5 ++++- _config/spamprotection.yml | 4 ++-- code/EditableSpamProtectionField.php | 1 + code/SpamProtectorManager.php | 7 +++++-- code/extensions/CommentSpamProtection.php | 4 ++++ code/extensions/FormSpamProtectionExtension.php | 6 ++++++ code/interfaces/SpamProtector.php | 3 +++ composer.json | 9 ++++++--- 8 files changed, 31 insertions(+), 8 deletions(-) diff --git a/_config.php b/_config.php index febd562..07d962b 100644 --- a/_config.php +++ b/_config.php @@ -8,4 +8,7 @@ * * @package spamprotection */ -Deprecation::notification_version('1.1', 'spamprotection'); + +use SilverStripe\Dev\Deprecation; + +Deprecation::notification_version('3.0', 'spamprotection'); diff --git a/_config/spamprotection.yml b/_config/spamprotection.yml index 8c755d1..b48c4bb 100644 --- a/_config/spamprotection.yml +++ b/_config/spamprotection.yml @@ -1,6 +1,6 @@ --- name: spamprotection --- -Form: +SilverStripe\Forms\Form: extensions: - - FormSpamProtectionExtension \ No newline at end of file + - SilverStripe\Spamprotection\FormSpamProtectionExtension \ No newline at end of file diff --git a/code/EditableSpamProtectionField.php b/code/EditableSpamProtectionField.php index 8993f28..34a4b9f 100644 --- a/code/EditableSpamProtectionField.php +++ b/code/EditableSpamProtectionField.php @@ -1,4 +1,5 @@