<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); }
2
/**
3
* Class EE_Middleware
4
* Parent class for EE_Middleware Request decorators.
5
* Accepts an instance of another EE_Middleware class,
6
* and handles the passing of EE_Request and EE_Response objects to and from it
7
* EE_Middleware classes are for functionality that needs to run on nearly EVERY request.
8
* They can perform their logic either before or after the core application has run:
9
* (see documentation for the handle() method below)
10
* EE_Middleware classes should NOT depend on core functionality,
11
* because there is no guarantee that the core application has run
12
*
13
* @deprecated
14
* @package Event Espresso
15
* @subpackage core
16
* @author Brent Christensen
17
* @since 4.8.20
18
*/
19
abstract class EE_Middleware implements EEI_Request_Decorator {
20
21
/**
22
* @deprecated
23
* @param EE_Request $request
24
* @param EE_Response $response
25
* @return EE_Response
26
*/
27
protected function process_request_stack( EE_Request $request, EE_Response $response ) {
28
EE_Error::doing_it_wrong(
29
__METHOD__,
30
esc_html__(
31
'All Event Espresso request stack classes have been moved to \core\services\request_stack and are now under the EventEspresso\core\services\request_stack namespace',