| @@ -9,11 +9,9 @@ | ||
| 9 | 9 | namespace Forge12\DoubleOptIn\Providers; |
| 10 | 10 | |
| 11 | 11 | use Forge12\DoubleOptIn\Admin\SingleConsentExportController; |
| 12 | 12 | use Forge12\DoubleOptIn\Container\BootableProviderInterface; |
| 13 | -use Forge12\DoubleOptIn\Audit\ConsentAuditListener; | |
| 14 | 13 | use Forge12\DoubleOptIn\Container\Container; |
| 15 | -use Forge12\DoubleOptIn\EventSystem\EventDispatcherInterface; | |
| 16 | 14 | use Forge12\DoubleOptIn\Repository\OptInRepositoryInterface; |
| 17 | 15 | use Forge12\DoubleOptIn\Service\PrivacyIntegration; |
| 18 | 16 | use Forge12\Shared\LoggerInterface; |
| 19 | 17 | |
| @@ -36,11 +34,9 @@ | ||
| 36 | 34 | PrivacyIntegration::class, |
| 37 | 35 | function ( Container $c ) { |
| 38 | 36 | return new PrivacyIntegration( |
| 39 | 37 | $c->get( LoggerInterface::class ), |
| 40 | - $c->get( OptInRepositoryInterface::class ), | |
| 41 | - // Bound by MailStatusServiceProvider (5.8.0); resolved lazily. | |
| 42 | - $c->get( \Forge12\DoubleOptIn\Repository\OptInMailStatusRepository::class ) | |
| 38 | + $c->get( OptInRepositoryInterface::class ) | |
| 43 | 39 | ); |
| 44 | 40 | } |
| 45 | 41 | ); |
| 46 | 42 | |
| @@ -63,11 +59,6 @@ | ||
| 63 | 59 | $container->get( PrivacyIntegration::class )->register(); |
| 64 | 60 | |
| 65 | 61 | // Register single-record consent export (fallback if Pro is not active) |
| 66 | 62 | $container->get( SingleConsentExportController::class )->registerActions(); |
| 67 | - | |
| 68 | - // A renewed consent is its own audit entry (5.8.0). | |
| 69 | - if ( $container->has( EventDispatcherInterface::class ) ) { | |
| 70 | - ( new ConsentAuditListener() )->register( $container->get( EventDispatcherInterface::class ) ); | |
| 71 | - } | |
| 72 | 63 | } |
| 73 | 64 | } |