From 619400354d568d533056970907866f473d9bd8bf Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 29 Apr 2024 10:59:46 +1200 Subject: [PATCH] API Deprecate ProxyDBExtension --- code/Extensions/ProxyDBExtension.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/Extensions/ProxyDBExtension.php b/code/Extensions/ProxyDBExtension.php index 62d39da..0432f89 100644 --- a/code/Extensions/ProxyDBExtension.php +++ b/code/Extensions/ProxyDBExtension.php @@ -6,12 +6,22 @@ use SilverStripe\Core\Extension; use TractorCow\ClassProxy\Generators\ProxyGenerator; use TractorCow\SilverStripeProxyDB\ProxyDBFactory; +use SilverStripe\Dev\Deprecation; /** * @extends Extension + * + * @deprecated 3.2.0 Will be replaced with an extension on SilverStripe\ORM\Connect\Database */ class ProxyDBExtension extends Extension { + public function __construct() + { + Deprecation::withNoReplacement(function () { + Deprecation::notice('3.2.0', 'Will be replaced with an extension on SilverStripe\ORM\Connect\Database.', Deprecation::SCOPE_CLASS); + }); + } + /** * Bind a proxy callback into the Database::manipulate method to allow us to track database activity * for the {@link AuditHook} class