sending_error_handler = $sending_error_handler; $this->scheduler = $scheduler; $this->mailer = $mailer; $this->renderer = $renderer; $this->settings = $settings; $this->features_controller = $features_controller; $this->woocommerce_segment = $woocommerce_segment; $this->inactive_subscribers_controller = $inactive_subscribers_controller; $this->woocommerce_helper = $woocommerce_helper; } /** @return SchedulerWorker */ function createScheduleWorker($timer) { return new SchedulerWorker($timer); } /** @return SendingQueueWorker */ function createQueueWorker($timer) { return new SendingQueueWorker($this->sending_error_handler, $this->scheduler, $timer); } function createStatsNotificationsWorker($timer) { return new StatsNotificationsWorker($this->mailer, $this->renderer, $this->settings, $this->features_controller, $this->woocommerce_helper, $timer); } /** @return SendingServiceKeyCheckWorker */ function createSendingServiceKeyCheckWorker($timer) { return new SendingServiceKeyCheckWorker($timer); } /** @return PremiumKeyCheckWorker */ function createPremiumKeyCheckWorker($timer) { return new PremiumKeyCheckWorker($this->settings, $timer); } /** @return BounceWorker */ function createBounceWorker($timer) { return new BounceWorker($timer); } /** @return MigrationWorker */ function createMigrationWorker($timer) { return new MigrationWorker($timer); } /** @return WooCommerceSyncWorker */ function createWooCommerceSyncWorker($timer) { return new WooCommerceSyncWorker($this->woocommerce_segment, $this->woocommerce_helper, $timer); } /** @return ExportFilesCleanup */ function createExportFilesCleanupWorker($timer) { return new ExportFilesCleanup($timer); } /** @return InactiveSubscribers */ function createInactiveSubscribersWorker($timer) { return new InactiveSubscribers($this->inactive_subscribers_controller, $this->settings, $timer); } }