singleton( PrivacyIntegration::class, function ( Container $c ) { return new PrivacyIntegration( $c->get( LoggerInterface::class ), $c->get( OptInRepositoryInterface::class ) ); } ); $container->singleton( SingleConsentExportController::class, function ( Container $c ) { return new SingleConsentExportController( $c->get( LoggerInterface::class ), $c->get( OptInRepositoryInterface::class ) ); } ); } /** * {@inheritdoc} */ public function boot( Container $container ): void { // Register WordPress Privacy Tools hooks $container->get( PrivacyIntegration::class )->register(); // Register single-record consent export (fallback if Pro is not active) $container->get( SingleConsentExportController::class )->registerActions(); } }