app.php
103 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Application configuration file. |
| 4 | * |
| 5 | * @package PrestoPlayer |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; // Exit if accessed directly. |
| 10 | } |
| 11 | |
| 12 | return array( |
| 13 | |
| 14 | /* |
| 15 | |-------------------------------------------------------------------------- |
| 16 | | Autoloaded Components |
| 17 | |-------------------------------------------------------------------------- |
| 18 | | |
| 19 | | The component classes listed here will be automatically loaded on the |
| 20 | | request to your application. |
| 21 | | |
| 22 | */ |
| 23 | 'components' => array( |
| 24 | // Seeder. |
| 25 | \PrestoPlayer\Seeds\Seeder::class, |
| 26 | |
| 27 | // Files. |
| 28 | \PrestoPlayer\Files::class, |
| 29 | \PrestoPlayer\Attachment::class, |
| 30 | |
| 31 | // Blocks. |
| 32 | \PrestoPlayer\Blocks\SelfHostedBlock::class, |
| 33 | \PrestoPlayer\Blocks\YouTubeBlock::class, |
| 34 | \PrestoPlayer\Blocks\VimeoBlock::class, |
| 35 | \PrestoPlayer\Blocks\ReusableVideoBlock::class, |
| 36 | \PrestoPlayer\Blocks\ReusableEditBlock::class, |
| 37 | \PrestoPlayer\Blocks\AudioBlock::class, |
| 38 | \PrestoPlayer\Blocks\MediaHubBlock::class, |
| 39 | \PrestoPlayer\Blocks\PopupBlock::class, |
| 40 | \PrestoPlayer\Blocks\PopupTriggerBlock::class, |
| 41 | \PrestoPlayer\Blocks\PopupMediaBlock::class, |
| 42 | |
| 43 | // Block services. |
| 44 | \PrestoPlayer\Services\Blocks\YoutubeBlockService::class, |
| 45 | \PrestoPlayer\Services\Blocks\VimeoBlockService::class, |
| 46 | \PrestoPlayer\Services\Blocks\PopupTriggerService::class, |
| 47 | |
| 48 | // Integrations. |
| 49 | \PrestoPlayer\Integrations\Kadence::class, |
| 50 | \PrestoPlayer\Integrations\Divi\Divi::class, |
| 51 | \PrestoPlayer\Integrations\Elementor\Elementor::class, |
| 52 | \PrestoPlayer\Integrations\BeaverBuilder\BeaverBuilder::class, |
| 53 | \PrestoPlayer\Integrations\LearnDash\LearnDash::class, |
| 54 | \PrestoPlayer\Integrations\Tutor\Tutor::class, |
| 55 | \PrestoPlayer\Integrations\Lifter\Lifter::class, |
| 56 | |
| 57 | // Services. |
| 58 | \PrestoPlayer\Services\NpsSurvey::class, |
| 59 | \PrestoPlayer\Services\Migrations::class, |
| 60 | \PrestoPlayer\Services\Translation::class, |
| 61 | \PrestoPlayer\Services\Player::class, |
| 62 | \PrestoPlayer\Services\Shortcodes::class, |
| 63 | \PrestoPlayer\Services\Menu::class, |
| 64 | \PrestoPlayer\Services\Scripts::class, |
| 65 | \PrestoPlayer\Services\Blocks::class, |
| 66 | \PrestoPlayer\Services\Settings::class, |
| 67 | \PrestoPlayer\Services\VideoPostType::class, |
| 68 | \PrestoPlayer\Services\ReusableVideos::class, |
| 69 | \PrestoPlayer\Services\AdminNotices::class, |
| 70 | \PrestoPlayer\Services\Usage::class, |
| 71 | \PrestoPlayer\Services\ProCompatibility::class, |
| 72 | \PrestoPlayer\Services\Compatibility::class, |
| 73 | \PrestoPlayer\Services\AjaxActions::class, |
| 74 | \PrestoPlayer\Services\PluginInstaller::class, |
| 75 | \PrestoPlayer\Services\Onboarding::class, |
| 76 | \PrestoPlayer\Services\Learn::class, |
| 77 | |
| 78 | // License. |
| 79 | \PrestoPlayer\Services\License\License::class, |
| 80 | |
| 81 | // API. |
| 82 | \PrestoPlayer\Services\API\RestPresetsController::class, |
| 83 | \PrestoPlayer\Services\API\RestAudioPresetsController::class, |
| 84 | \PrestoPlayer\Services\API\RestSettingsController::class, |
| 85 | \PrestoPlayer\Services\API\RestVideosController::class, |
| 86 | \PrestoPlayer\Services\API\RestMediaPostController::class, |
| 87 | \PrestoPlayer\Services\API\RestMediaListController::class, |
| 88 | \PrestoPlayer\Services\API\RestEmailSubmissionsController::class, |
| 89 | \PrestoPlayer\Services\API\RestLicenseController::class, |
| 90 | ), |
| 91 | |
| 92 | /* |
| 93 | |-------------------------------------------------------------------------- |
| 94 | | Autoloaded Pro Components |
| 95 | |-------------------------------------------------------------------------- |
| 96 | | |
| 97 | | The component classes listed here will be automatically loaded |
| 98 | | if another plugin adds to this filter |
| 99 | | |
| 100 | */ |
| 101 | 'pro_components' => apply_filters( 'presto_player_pro_components', array() ), |
| 102 | ); |
| 103 |