Conditions | 3 |
Paths | 4 |
Total Lines | 23 |
Code Lines | 16 |
Lines | 23 |
Ratio | 100 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function __construct($middleware_app_class, $message = '', $code = 0, Exception $previous = null) |
||
29 | { |
||
30 | if(is_array($middleware_app_class)) { |
||
31 | $middleware_app_class = reset($middleware_app_class); |
||
32 | } |
||
33 | if (empty($message)) { |
||
34 | $message = sprintf( |
||
35 | esc_html__( |
||
36 | 'The supplied Request Stack Middleware class "%1$s" is invalid or could no be found.', |
||
37 | 'event_espresso' |
||
38 | ), |
||
39 | $middleware_app_class |
||
40 | ); |
||
41 | } |
||
42 | parent::__construct( |
||
43 | '$middleware_app_class', |
||
44 | $middleware_app_class, |
||
45 | 'EventEspresso\core\services\request\middleware\Middleware', |
||
46 | $message, |
||
47 | $code, |
||
48 | $previous |
||
49 | ); |
||
50 | } |
||
51 | } |
||
52 |