Skip to content

Commit

Permalink
Merge pull request #76 from creative-commoners/pulls/3/deprecate-prox…
Browse files Browse the repository at this point in the history
…y-db

API Deprecate ProxyDBExtension
  • Loading branch information
sabina-talipova authored Apr 29, 2024
2 parents d72b429 + 5fe202e commit 2d7be44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/Extensions/ProxyDBExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@
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 2d7be44

Please sign in to comment.