PluginProbe
Extendify / 1.13.1
Extendify v1.13.1
3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 0.8.0 All 125 releases
extendify / bootstrap.php

bootstrap.php in Extendify 1.13.1, at bootstrap.php

66 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Bootstrap the application
4 */
5
6 use Extendify\PartnerData;
7 use Extendify\Config;
8 use Extendify\Insights;
9 use Extendify\Launch\Admin as LaunchAdmin;
10 use Extendify\Library\Admin as LibraryAdmin;
11 use Extendify\Library\Frontend;
12 use Extendify\Assist\Admin as AssistAdmin;
13 use Extendify\HelpCenter\Admin as HelpCenterAdmin;
14 use Extendify\Draft\Admin as DraftAdmin;
15 use Extendify\Shared\Admin as SharedAdmin;
16 use Extendify\AdminPageRouter;
17 use Extendify\Affiliate;
18
19 if (!defined('ABSPATH')) {
20 die('No direct access.');
21 }
22
23 if (!defined('EXTENDIFY_PATH')) {
24 define('EXTENDIFY_PATH', \plugin_dir_path(__FILE__));
25 }
26
27 if (!defined('EXTENDIFY_URL')) {
28 define('EXTENDIFY_URL', \plugin_dir_url(__FILE__));
29 }
30
31 if (!defined('EXTENDIFY_PLUGIN_BASENAME')) {
32 define('EXTENDIFY_PLUGIN_BASENAME', \plugin_basename(__DIR__ . '/extendify.php'));
33 }
34
35 if (is_readable(EXTENDIFY_PATH . 'vendor/autoload.php')) {
36 require EXTENDIFY_PATH . 'vendor/autoload.php';
37 }
38
39 new PartnerData();
40 new Config();
41 new Insights();
42 new SharedAdmin();
43 new HelpCenterAdmin();
44 new LaunchAdmin();
45 new LibraryAdmin();
46 new Frontend();
47 new AssistAdmin();
48 new DraftAdmin();
49 new AdminPageRouter();
50 new Affiliate();
51
52 require EXTENDIFY_PATH . 'routes/api.php';
53 if (is_readable(EXTENDIFY_PATH . '/updater.php')) {
54 require EXTENDIFY_PATH . 'updater.php';
55 }
56
57 add_action('init', function () {
58 load_plugin_textdomain('extendify-local', false, dirname(plugin_basename(__FILE__)) . '/languages/php');
59 });
60
61 // To cover legacy conflicts.
62 // phpcs:ignore
63 class ExtendifySdk
64 {
65 }
66