Completed
Branch FET/11174/bot-detection-middle... (17f260)
by
unknown
93:18 queued 82:13
created

EE_Middleware::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?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',
32
                'event_espresso'
33
            ),
34
            '4.9.52'
35
        );
36
        return $response;
37
    }
38
39
40
41
}
42
43
44
45
// End of file EE_Middleware.core.php
46
// Location: /core/middleware/EE_Middleware.core.php
47