1 | <?php |
||
14 | trait ApprovePresenterTrait |
||
15 | { |
||
16 | use SecuredLinksPresenterTrait; |
||
17 | |||
18 | /** |
||
19 | * @var IApproveControlFactory |
||
20 | * @inject |
||
21 | */ |
||
22 | public $approveControlFactory; |
||
23 | |||
24 | /** |
||
25 | * @var IAuthorizationRequestSerializer |
||
26 | * @inject |
||
27 | */ |
||
28 | public $authorizationRequestSerializer; |
||
29 | |||
30 | /** |
||
31 | * @var RedirectService |
||
32 | * @inject |
||
33 | */ |
||
34 | public $redirectService; |
||
35 | |||
36 | protected function createComponentApprove(): ApproveControl |
||
59 | |||
60 | /** |
||
61 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint |
||
62 | */ |
||
63 | abstract public function error($message = null, $code = HttpResponse::S404_NOT_FOUND); |
||
64 | |||
65 | /** |
||
66 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint |
||
67 | */ |
||
68 | abstract public function getSession($namespace = null); |
||
69 | |||
70 | abstract public function getUser(); |
||
71 | |||
72 | abstract public function sendResponse(IResponse $response); |
||
73 | |||
74 | } |
||
75 |