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