uestAsync.php'); $this->include('src/BackgroundProcess/Queues/RemoteRequestQueue.php'); $this->include('src/BackgroundProcess/SmsDispatcher.php'); // Notification classes $this->include('src/Notification/Notification.php'); $this->include('src/Notification/Handler/DefaultNotification.php'); $this->include('src/Notification/Handler/WooCommerceOrderNotification.php'); $this->include('src/Notification/Handler/WooCommerceCouponNotification.php'); $this->include('src/Notification/Handler/WooCommerceCustomerNotification.php'); $this->include('src/Notification/Handler/WooCommerceProductNotification.php'); $this->include('src/Notification/Handler/WordPressPostNotification.php'); $this->include('src/Notification/Handler/WordPressUserNotification.php'); $this->include('src/Notification/Handler/WordPressCommentNotification.php'); $this->include('src/Notification/Handler/SubscriberNotification.php'); $this->include('src/Notification/Handler/CustomNotification.php'); $this->include('src/Notification/Handler/AwesomeSupportTicketNotification.php'); $this->include('src/Notification/Handler/FormidableNotification.php'); $this->include('src/Notification/Handler/ForminatorNotification.php'); $this->include('src/Notification/NotificationFactory.php'); $this->include('src/Notification/ForminatorNotification.php'); // Legacy classes. $this->include('includes/class-wpsms-features.php'); $this->include('includes/class-wpsms-notifications.php'); $this->include('includes/class-wpsms-integrations.php'); $this->include('includes/class-wpsms-gravityforms.php'); $this->include('includes/class-wpsms-quform.php'); $this->include('includes/class-wpsms-newsletter.php'); $this->include('includes/class-wpsms-rest-api.php'); $this->include('includes/admin/class-wpsms-version.php'); // Newsletter $this->include('src/Services/Subscriber/SubscriberManager.php'); $subscriberManager = new \WP_SMS\Services\Subscriber\SubscriberManager(); $subscriberManager->init(); // Cron Jobs $this->include('src/Services/CronJobs/WeeklyReport.php'); $this->include('src/Services/CronJobs/CronJobManager.php'); $cronJobManager = new \WP_SMS\Services\CronJobs\CronJobManager(); $cronJobManager->init(); // Blocks $this->include('src/Blocks/BlockAbstract.php'); $this->include('src/Blocks/SubscribeBlock.php'); $this->include('src/Blocks/SendSmsBlock.php'); $this->include('src/Blocks/BlockAssetsManager.php'); $blockManager = new \WP_SMS\Blocks\BlockAssetsManager(); $blockManager->init(); // Controllers $this->include('src/Controller/AjaxControllerAbstract.php'); $this->include('src/Controller/SubscriberFormAjax.php'); $this->include('src/Controller/GroupFormAjax.php'); $this->include('src/Controller/ExportAjax.php'); $this->include('src/Controller/UploadSubscriberCsv.php'); $this->include('src/Controller/PrivacyDataAjax.php'); $this->include('src/Controller/ImportSubscriberCsv.php'); $this->include('src/Controller/ControllerManager.php'); $controllerManager = new \WP_SMS\Controller\ControllerManager(); $controllerManager->init(); // Webhooks $this->include('src/Webhook/WebhookFactory.php'); $this->include('src/Webhook/WebhookAbstract.php'); $this->include('src/Webhook/WebhookManager.php'); $this->include('src/Webhook/NewSubscriberWebhook.php'); $this->include('src/Webhook/NewSmsWebhook.php'); $this->include('src/Webhook/NewIncomingSmsWebhook.php'); $webhookManager = new \WP_SMS\Webhook\WebhookManager(); $webhookManager->init(); // SmsOtp $this->include('src/SmsOtp/Exceptions/OtpLimitExceededException.php'); $this->include('src/SmsOtp/Exceptions/TooManyAttemptsException.php'); $this->include('src/SmsOtp/Exceptions/InvalidArgumentException.php'); $this->include('src/SmsOtp/Generator.php'); $this->include('src/SmsOtp/Verifier.php'); $this->include('src/SmsOtp/SmsOtp.php'); // Services $this->include('src/Services/WooCommerce/WooCommerceCheckout.php'); $this->include('src/Services/WooCommerce/OrderViewManager.php'); $this->include('src/Services/MessageButton/ChatBoxDecorator.php'); $this->include('src/Services/MessageButton/MessageButtonManager.php'); $this->include('src/Services/MessageButton/ChatBox.php'); $this->include('src/Services/Report/EmailReportGenerator.php'); $wooCommerceCheckout = new \WP_SMS\Services\WooCommerce\WooCommerceCheckout(); $wooCommerceCheckout->init(); $messageButtonManager = new \WP_SMS\Services\MessageButton\MessageButtonManager(); $messageButtonManager->init(); $this->include('src/Services/Formidable/Formidable.php'); $this->include('src/Services/Formidable/FormidableManager.php'); $formidableManager = new FormidableManager(); $formidableManager->init(); $this->include('src/Services/Forminator/ForminatorManager.php'); $this->include('src/Services/Forminator/Forminator.php'); $forminatorManager = new ForminatorManager(); $forminatorManager->init(); // Shortcode $this->include('src/Shortcode/ShortcodeManager.php'); $this->include('src/Shortcode/SubscriberShortcode.php'); $shortcodeManager = new \WP_SMS\Shortcode\ShortcodeManager(); $shortcodeManager->init(); if (is_admin()) { // Admin legacy classes. $this->include('includes/admin/settings/class-wpsms-settings.php'); $this->include('includes/admin/settings/class-wpsms-settings-integration.php'); $this->include('includes/admin/class-wpsms-admin.php'); $this->include('includes/admin/class-wpsms-admin-helper.php'); $this->include('includes/admin/outbox/class-wpsms-outbox.php'); $this->include('includes/admin/inbox/class-wpsms-inbox.php'); $this->include('includes/admin/send/class-wpsms-send.php'); $this->include('includes/admin/add-ons/class-add-ons.php'); // Widgets $this->include('src/Widget/WidgetsManager.php'); \WP_SMS\Widget\WidgetsManager::init(); // Notices $this->include('src/Notice/AbstractNotice.php'); $this->include('src/Notice/NoticeManager.php'); \WP_SMS\Notice\NoticeManager::getInstance(); } if (!is_admin()) { // Front Class. $this->include('includes/class-front.php'); } // API class. $this->include('includes/api/v1/class-wpsms-api-newsletter.php'); $this->include('includes/api/v1/class-wpsms-api-send.php'); $this->include('includes/api/v1/class-wpsms-api-webhook.php'); $this->include('includes/api/v1/class-wpsms-api-credit.php'); } /** * @return \WP_SMS\Pro\Scheduled */ public function scheduled() { return new \WP_SMS\Pro\Scheduled(); } /** * @return \WP_SMS\Newsletter */ public function newsletter() { return new \WP_SMS\Newsletter(); } /** * @return \WP_SMS\Notification\NotificationFactory */ public function notification() { return new \WP_SMS\Notification\NotificationFactory(); } /** * @return \WP_SMS\Notice\NoticeManager */ public function notice() { return \WP_SMS\Notice\NoticeManager::getInstance(); } /** * @return RemoteRequestAsync */ public function getRemoteRequestAsync() { return $this->remoteRequestAsync; } /** * @return RemoteRequestQueue */ public function getRemoteRequestQueue() { return $this->remoteRequestQueue; } }