-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathControllerInterface.php
More file actions
42 lines (35 loc) · 1.68 KB
/
Copy pathControllerInterface.php
File metadata and controls
42 lines (35 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* This file is part of the Active Collab Controller project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
declare(strict_types=1);
namespace ActiveCollab\Controller;
use ActiveCollab\Controller\ActionNameResolver\ActionNameResolverInterface;
use ActiveCollab\Controller\ActionResult\Container\ActionResultContainerInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Log\LoggerInterface;
interface ControllerInterface
{
public function __before(ServerRequestInterface $request);
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
callable $next = null
): ResponseInterface;
public function getControllerName(): string;
public function getActionNameResolver(): ActionNameResolverInterface;
public function &setActionNameResolver(ActionNameResolverInterface $action_name_resolver): ControllerInterface;
public function getActionResultContainer(): ActionResultContainerInterface;
public function &setActionResultContainer(ActionResultContainerInterface $action_result_container): ControllerInterface;
public function getLogger();
public function &setLogger(LoggerInterface $logger = null): ControllerInterface;
public function getClientSafeExceptionMessage(): string;
public function &setClientSafeExceptionMessage(string $message): ControllerInterface;
public function getLogExceptionMessage(): string;
public function &setLogExceptionMessage(string $message): ControllerInterface;
public function getLogPhpErrorMessage(): string;
public function &setLogPhpErrorMessage(string $message): ControllerInterface;
}