Skip to content

Commit

Permalink
API Deprecate ProxyDBExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 28, 2024
1 parent d72b429 commit 6194003
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/Extensions/ProxyDBExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@
use SilverStripe\Core\Extension;
use TractorCow\ClassProxy\Generators\ProxyGenerator;
use TractorCow\SilverStripeProxyDB\ProxyDBFactory;
use SilverStripe\Dev\Deprecation;

/**
* @extends Extension<ProxyDBFactory>
*
* @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
Expand Down

0 comments on commit 6194003

Please sign in to comment.