| @@ 158-170 (lines=13) @@ | ||
| 155 | * @throws Exception |
|
| 156 | * @since $VID:$ |
|
| 157 | */ |
|
| 158 | private function handleFrontendRequest() |
|
| 159 | { |
|
| 160 | try { |
|
| 161 | // don't load frontend if M-Mode is active or request is not browser HTTP |
|
| 162 | if ($this->maintenance_mode->level() || ! $this->request->isFrontend() || ! $this->request->isFrontAjax()) { |
|
| 163 | return; |
|
| 164 | } |
|
| 165 | do_action('AHEE__EE_System__load_controllers__load_front_controllers'); |
|
| 166 | $this->loader->getShared('EE_Front_Controller'); |
|
| 167 | } catch (Exception $exception) { |
|
| 168 | new ExceptionStackTraceDisplay($exception); |
|
| 169 | } |
|
| 170 | } |
|
| 171 | ||
| 172 | ||
| 173 | /** |
|
| @@ 218-233 (lines=16) @@ | ||
| 215 | * @throws Exception |
|
| 216 | * @since $VID:$ |
|
| 217 | */ |
|
| 218 | public function handlePersonalDataRequest() |
|
| 219 | { |
|
| 220 | try { |
|
| 221 | // don't load frontend if M-Mode is active or request is not browser HTTP |
|
| 222 | if (! $this->request->isAdmin() |
|
| 223 | || ! $this->request->isAjax() |
|
| 224 | || ! $this->maintenance_mode->models_can_query() |
|
| 225 | ) { |
|
| 226 | return; |
|
| 227 | } |
|
| 228 | $this->loader->getShared('EventEspresso\core\services\privacy\erasure\PersonalDataEraserManager'); |
|
| 229 | $this->loader->getShared('EventEspresso\core\services\privacy\export\PersonalDataExporterManager'); |
|
| 230 | } catch (Exception $exception) { |
|
| 231 | new ExceptionStackTraceDisplay($exception); |
|
| 232 | } |
|
| 233 | } |
|
| 234 | ||
| 235 | ||
| 236 | /** |
|