1 | <?php |
||
13 | class ExecuteResource extends Resource { |
||
14 | |||
15 | const ACTION_ARG = '__action'; |
||
16 | |||
17 | /** @var WebApplication */ |
||
18 | private $app; |
||
19 | |||
20 | /** @var CookieStore */ |
||
21 | private $cookies; |
||
22 | |||
23 | /** |
||
24 | * @param Factory $factory <- |
||
25 | * @param WebApplication $app <- |
||
26 | * @param CookieStore $cookies <- |
||
27 | */ |
||
28 | public function __construct(Factory $factory, WebApplication $app, CookieStore $cookies) { |
||
33 | |||
34 | /** |
||
35 | * @param WebRequest $request <- |
||
36 | * @param string $__action |
||
37 | * @param null|string $__token |
||
38 | * @return string |
||
39 | */ |
||
40 | public function doGet(WebRequest $request, $__action, $__token = null) { |
||
44 | |||
45 | /** |
||
46 | * @param WebRequest $request <- |
||
47 | * @param string $__action |
||
48 | * @param null|string $__token |
||
49 | * @return string |
||
50 | */ |
||
51 | public function doPost(WebRequest $request, $__action, $__token = null) { |
||
55 | |||
56 | private function getExecutionResource(WebApplication $app, CookieStore $cookies, WebRequest $request) { |
||
60 | } |