PluginProbe
Extendify / 0.10.1
Extendify v0.10.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 0.10.1, at bootstrap.php

58 lines 1.3 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\Config;
7 use Extendify\Insights;
8 use Extendify\Onboarding\Admin as OnboardingAdmin;
9 use Extendify\Library\Admin as LibraryAdmin;
10 use Extendify\Library\Shared;
11 use Extendify\Library\Welcome;
12 use Extendify\Library\Frontend;
13 use Extendify\Assist\AdminPage as AssistAdminPage;
14 use Extendify\Assist\Admin as AssistAdmin;
15
16 if (!defined('ABSPATH')) {
17 die('No direct access.');
18 }
19
20 if (!defined('EXTENDIFY_PATH')) {
21 define('EXTENDIFY_PATH', \plugin_dir_path(__FILE__));
22 }
23
24 if (!defined('EXTENDIFY_URL')) {
25 define('EXTENDIFY_URL', \plugin_dir_url(__FILE__));
26 }
27
28 if (!defined('EXTENDIFY_PLUGIN_BASENAME')) {
29 define('EXTENDIFY_PLUGIN_BASENAME', \plugin_basename(__DIR__ . '/extendify.php'));
30 }
31
32 if (is_readable(EXTENDIFY_PATH . 'vendor/autoload.php')) {
33 require EXTENDIFY_PATH . 'vendor/autoload.php';
34 }
35
36 new Config();
37 new Insights();
38 new OnboardingAdmin();
39 new LibraryAdmin();
40 new Frontend();
41 new Shared();
42 new Welcome();
43 new AssistAdminPage();
44 new AssistAdmin();
45
46 require EXTENDIFY_PATH . 'routes/api.php';
47 require EXTENDIFY_PATH . 'editorplus/EditorPlus.php';
48
49 \add_action('plugins_loaded', function () {
50 \load_plugin_textdomain('extendify');
51 });
52
53 // To cover legacy conflicts.
54 // phpcs:ignore
55 class ExtendifySdk
56 {
57 }
58