is->deletedSubscriberIds[$subscriberId] = $this->getTimestamp(); } public function subscribersCreated(array $subscriberIds): void { foreach ($subscriberIds as $subscriberId) { $this->subscriberCreated((int)$subscriberId); } } public function subscribersUpdated(array $subscriberIds): void { foreach ($subscriberIds as $subscriberId) { $this->subscriberUpdated((int)$subscriberId); } } public function subscribersDeleted(array $subscriberIds): void { foreach ($subscriberIds as $subscriberId) { $this->subscriberDeleted((int)$subscriberId); } } public function subscribersBatchCreate(): void { $this->createdSubscriberBatches[] = $this->getTimestamp(); } public function subscribersBatchUpdate(): void { $this->updatedSubscriberBatches[] = $this->getTimestamp(); } private function getTimestamp(): int { $dateTime = Carbon::createFromTimestamp($this->wp->currentTime('timestamp', true), 'UTC'); return $dateTime->getTimestamp(); } }
Fatal error: Uncaught Error: Class "MailPoet\Config\SubscriberChangesNotifier" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:5802 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3226): MailPoetGenerated\FreeCachedContainer->getSubscriberChangesNotifierService() #1 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(646): MailPoetGenerated\FreeCachedContainer->getEntityManagerFactoryService() #2 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4908): MailPoetGenerated\FreeCachedContainer->getEntityManagerService() #3 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4898): MailPoetGenerated\FreeCachedContainer->getSettingsRepositoryService() #4 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2633): MailPoetGenerated\FreeCachedContainer->getSettingsController2Service() #5 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #6 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #7 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #8 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #9 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #10 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #11 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #12 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #13 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #14 /htdocs/index.php(17): require('/htdocs/wp-blog...') #15 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 5802