Add service for distributing tracking configuration in the plugin

We introduced new settings that enable set different levels (basic, partial, full) of user tracking.
Each level enables different tracking options. This service should encapsulate the logic that determines
what should be tracked on each level of the setting.
[MAILPOET-3185]
This commit is contained in:
Rostislav Wolny
2021-11-24 11:26:50 +01:00
committed by Veljko V
parent 590652c471
commit 4bc7f3c2bc
2 changed files with 27 additions and 0 deletions

View File

@@ -313,6 +313,7 @@ class ContainerConfigurator implements IContainerConfigurator {
// Settings
$container->autowire(\MailPoet\Settings\SettingsController::class)->setPublic(true);
$container->autowire(\MailPoet\Settings\SettingsRepository::class)->setPublic(true);
$container->autowire(\MailPoet\Settings\TrackingConfig::class)->setPublic(true);
// User Flags
$container->autowire(\MailPoet\Settings\UserFlagsController::class);
$container->autowire(\MailPoet\Settings\UserFlagsRepository::class)->setPublic(true);