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

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