Completed
Branch FET/11183/improvements-to-pue-... (232f50)
by
unknown
43:46 queued 26:36
created

EE_Bootstrap::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 2
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
4
defined('EVENT_ESPRESSO_VERSION') || exit;
5
6
7
/**
8
 * Class EE_Bootstrap
9
 * Just a frame for attaching the rest of the system to
10
 *
11
 * @package       Event Espresso
12
 * @subpackage    core
13
 * @author        Brent Christensen
14
 * @since         4.8.20
15
 *
16
 */
17
class EE_Bootstrap
18
{
19
20
21
    /**
22
     * load_espresso_addons
23
     * runs during the WP 'plugins_loaded' action at priority 1
24
     * and is the initial loading phase for EE addons
25
     * no other logic should be performed at this point
26
     */
27
    public static function load_espresso_addons()
28
    {
29
        do_action('AHEE__EE_Bootstrap__load_espresso_addons');
30
    }
31
32
33
34
    /**
35
     * detect_activations_or_upgrades
36
     * runs during the WP 'plugins_loaded' action at priority 3
37
     * Now that all of the addons have been loaded,
38
     * we can determine if anything needs activating or upgrading
39
     */
40
    public static function detect_activations_or_upgrades()
41
    {
42
        do_action('AHEE__EE_Bootstrap__detect_activations_or_upgrades');
43
    }
44
45
46
47
    /**
48
     * load_core_configuration
49
     * runs during the WP 'plugins_loaded' action at priority 5
50
     * Now that the database is assumed to be at the correct version
51
     * we can load and set all of the system configurations
52
     */
53
    public static function load_core_configuration()
54
    {
55
        do_action('AHEE__EE_Bootstrap__load_core_configuration');
56
    }
57
58
59
60
    /**
61
     * register_shortcodes_modules_and_widgets
62
     * runs during the WP 'plugins_loaded' action at priority 7
63
     * and handles registering all o four shortcodes, modules and widgets
64
     * so that they are ready to be used throughout the system
65
     */
66
    public static function register_shortcodes_modules_and_widgets()
67
    {
68
        do_action('AHEE__EE_Bootstrap__register_shortcodes_modules_and_widgets');
69
    }
70
71
72
73
    /**
74
     * brew_espresso
75
     * runs during the WP 'plugins_loaded' action at priority 9
76
     * bootstrapping is considered complete at this point,
77
     * so let the fun begin...
78
     */
79
    public static function brew_espresso()
80
    {
81
        do_action('AHEE__EE_Bootstrap__brew_espresso');
82
    }
83
84
85
86
    /**
87
     * @deprecated 4.9.53
88
     */
89
    public function run_request_stack()
90
    {
91
    }
92
93
94
95
    /**
96
     * @deprecated 4.9.53
97
     */
98
    public function build_request_stack()
99
    {
100
    }
101
102
}
103
// End of file EE_Bootstrap.core.php
104
// Location: /EE_Bootstrap.core.php
105