1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
||
27 | class EE_Bootstrap { |
||
28 | |||
29 | /** |
||
30 | * @access protected |
||
31 | * @type EE_Request_Stack_Builder $_request_stack_builder |
||
32 | */ |
||
33 | protected $_request_stack_builder = null; |
||
34 | |||
35 | /** |
||
36 | * @access protected |
||
37 | * @type EE_Request_Stack $_request_stack |
||
38 | */ |
||
39 | protected $_request_stack = null; |
||
40 | |||
41 | |||
42 | |||
43 | public function __construct() { |
||
53 | |||
54 | |||
55 | |||
56 | /** |
||
57 | * run_request_stack |
||
58 | * construct request stack and run middleware apps |
||
59 | */ |
||
60 | public function run_request_stack() { |
||
73 | |||
74 | |||
75 | |||
76 | /** |
||
77 | * load_autoloader |
||
78 | */ |
||
79 | protected function load_autoloader() { |
||
84 | |||
85 | |||
86 | |||
87 | /** |
||
88 | * load_required_files |
||
89 | */ |
||
90 | protected function set_autoloaders_for_required_files() { |
||
100 | |||
101 | |||
102 | |||
103 | /** |
||
104 | * build_request_stack |
||
105 | * |
||
106 | * @return \EE_Request_Stack_Builder |
||
107 | */ |
||
108 | public function build_request_stack() { |
||
130 | |||
131 | |||
132 | |||
133 | /** |
||
134 | * load_espresso_addons |
||
135 | * runs during the WP 'plugins_loaded' action at priority 1 |
||
136 | * and is the initial loading phase for EE addons |
||
137 | * no other logic should be performed at this point |
||
138 | */ |
||
139 | public static function load_espresso_addons() { |
||
142 | |||
143 | |||
144 | |||
145 | /** |
||
146 | * detect_activations_or_upgrades |
||
147 | * runs during the WP 'plugins_loaded' action at priority 3 |
||
148 | * Now that all of the addons have been loaded, |
||
149 | * we can determine if anything needs activating or upgrading |
||
150 | */ |
||
151 | public static function detect_activations_or_upgrades() { |
||
154 | |||
155 | |||
156 | |||
157 | /** |
||
158 | * load_core_configuration |
||
159 | * runs during the WP 'plugins_loaded' action at priority 5 |
||
160 | * Now that the database is assumed to be at the correct version |
||
161 | * we can load and set all of the system configurations |
||
162 | */ |
||
163 | public static function load_core_configuration() { |
||
166 | |||
167 | |||
168 | |||
169 | /** |
||
170 | * register_shortcodes_modules_and_widgets |
||
171 | * runs during the WP 'plugins_loaded' action at priority 7 |
||
172 | * and handles registering all o four shortcodes, modules and widgets |
||
173 | * so that they are ready to be used throughout the system |
||
174 | */ |
||
175 | public static function register_shortcodes_modules_and_widgets() { |
||
178 | |||
179 | |||
180 | |||
181 | /** |
||
182 | * brew_espresso |
||
183 | * runs during the WP 'plugins_loaded' action at priority 9 |
||
184 | * bootstrapping is considered complete at this point, |
||
185 | * so let the fun begin... |
||
186 | */ |
||
187 | public static function brew_espresso() { |
||
190 | |||
191 | |||
192 | |||
193 | } |
||
194 | // End of file EE_Bootstrap.core.php |
||
195 | // Location: /EE_Bootstrap.core.php |