<?php

defined( 'ABSPATH' ) || exit;

/**
 * Create the application.
 *
 * @since 1.0.0
 */

use Masteriyo\Pro\Providers\AddonsServiceProvider;
use Masteriyo\Pro\Providers\ProServiceProvider;
use Masteriyo\Providers\SettingsServiceProvider;
use Masteriyo\Providers\CacheCompatibilityServiceProvider;
use Masteriyo\Providers\JobServiceProvider;
use Masteriyo\Providers\SeoCompatibilityServiceProvider;
use Masteriyo\Providers\WebhookServiceProvider;
use Masteriyo\Providers\OpenAIServiceProvider;
use Masteriyo\Providers\NotificationServiceProvider;
use Masteriyo\Providers\TrackingServiceProvider;
use Masteriyo\Providers\FormbricksServiceProvider;
use Masteriyo\Providers\StarterTemplateServiceProvider;


return array_unique(
	/**
	 * Filters service providers.
	 *
	 * @since 1.0.0
	 *
	 * @param string[] $service_providers Service provider classes.
	 */
	apply_filters(
		'masteriyo_service_providers',
		array(
			SettingsServiceProvider::class,
			NotificationServiceProvider::class,
			'Masteriyo\Providers\TransientCacheServiceProvider',
			'Masteriyo\Providers\CacheServiceProvider',
			'Masteriyo\Providers\NoticeServiceProvider',
			'Masteriyo\Providers\CourseServiceProvider',
			'Masteriyo\Providers\PermissionServiceProvider',
			'Masteriyo\Providers\SessionServiceProvider',
			'Masteriyo\Providers\LessonServiceProvider',
			'Masteriyo\Providers\QuizServiceProvider',
			'Masteriyo\Providers\SectionServiceProvider',
			'Masteriyo\Providers\UserServiceProvider',
			'Masteriyo\Providers\OrderServiceProvider',
			'Masteriyo\Providers\CourseTagServiceProvider',
			'Masteriyo\Providers\CourseCategoryServiceProvider',
			'Masteriyo\Providers\CourseDifficultyServiceProvider',
			'Masteriyo\Providers\CartServiceProvider',
			'Masteriyo\Providers\TemplateServiceProvider',
			'Masteriyo\Providers\QuestionServiceProvider',
			'Masteriyo\Providers\ShortcodesServiceProvider',
			'Masteriyo\Providers\QueriesServiceProvider',
			'Masteriyo\Providers\EmailsServiceProvider',
			'Masteriyo\Providers\CourseReviewServiceProvider',
			'Masteriyo\Providers\LessonReviewServiceProvider',
			'Masteriyo\Providers\QuizReviewServiceProvider',
			'Masteriyo\Providers\CourseQuestionAnswerServiceProvider',
			'Masteriyo\Providers\CountriesServiceProvider',
			'Masteriyo\Providers\CheckoutServiceProvider',
			'Masteriyo\Providers\PaymentGatewaysServiceProvider',
			'Masteriyo\Providers\CourseProgressServiceProvider',
			'Masteriyo\Providers\UserCourseServiceProvider',
			'Masteriyo\Providers\CourseProgressItemServiceProvider',
			'Masteriyo\Providers\FrontendQueryServiceProvider',
			'Masteriyo\Providers\AppServiceProvider',
			'Masteriyo\Providers\BlocksServiceProvider',
			'Masteriyo\Providers\QuizAttemptServiceProvider',
			'Masteriyo\Providers\MigratorServiceProvider',
			'Masteriyo\Providers\NotificationServiceProvider',
			'Masteriyo\Providers\RewriteServiceProvider',
			'Masteriyo\Providers\AjaxServiceProvider',
			'Masteriyo\Providers\ApiServiceProvider',
			'Masteriyo\Providers\UserCoursesServiceProvider',
			'Masteriyo\Providers\PostTypeServiceProvider',
			'Masteriyo\Providers\TaxonomyServiceProvider',
			'Masteriyo\Providers\FormsServiceProvider',
			'Masteriyo\Providers\StarterServiceProvider',
			CacheCompatibilityServiceProvider::class,
			JobServiceProvider::class,
			WebhookServiceProvider::class,
			OpenAIServiceProvider::class,
			SeoCompatibilityServiceProvider::class,
			TrackingServiceProvider::class,
			FormbricksServiceProvider::class,
			StarterTemplateServiceProvider::class,

			// Pro Service Providers.
			ProServiceProvider::class,
			AddonsServiceProvider::class,
		)
	)
);
