1 | <?php |
||
27 | class RequestStackCoreApp implements RequestDecoratorInterface, RequestStackCoreAppInterface |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @var RequestInterface $request |
||
32 | */ |
||
33 | protected $request; |
||
34 | |||
35 | /** |
||
36 | * @var ResponseInterface $response |
||
37 | */ |
||
38 | protected $response; |
||
39 | |||
40 | |||
41 | |||
42 | |||
43 | /** |
||
44 | * handle |
||
45 | * sets hooks for running rest of system |
||
46 | * provides "AHEE__EE_System__construct__complete" hook for EE Addons to use as their starting point |
||
47 | * starting EE Addons from any other point may lead to problems |
||
48 | * |
||
49 | * @param RequestInterface $request |
||
50 | * @param ResponseInterface $response |
||
51 | * @return ResponseInterface |
||
52 | * @throws InvalidClassException |
||
53 | * @throws EE_Error |
||
54 | * @throws InvalidDataTypeException |
||
55 | * @throws InvalidInterfaceException |
||
56 | * @throws InvalidArgumentException |
||
57 | */ |
||
58 | public function handleRequest(RequestInterface $request, ResponseInterface $response) |
||
81 | |||
82 | |||
83 | /** |
||
84 | * set framework for the rest of EE to hook into when loading |
||
85 | * |
||
86 | * @throws EE_Error |
||
87 | */ |
||
88 | private function setupFramework() |
||
100 | |||
101 | |||
102 | /** |
||
103 | * called after the request stack has been fully processed |
||
104 | * if any of the middleware apps has requested the plugin be deactivated, then we do that now |
||
105 | * |
||
106 | * @param RequestInterface $request |
||
107 | * @param ResponseInterface $response |
||
108 | */ |
||
109 | public function handleResponse(RequestInterface $request, ResponseInterface $response) |
||
115 | |||
116 | } |
||
117 | // Location: RequestStackCoreApp.php |
||
118 |