| 1 | <?php |
||
| 14 | abstract class JsonController implements ControllerInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param ServerRequestInterface $request |
||
| 18 | * @param ResponseInterface $response |
||
| 19 | * @param array $args |
||
| 20 | * |
||
| 21 | * @return array|ResponseInterface |
||
| 22 | * |
||
| 23 | * @throws Exception |
||
| 24 | */ |
||
| 25 | abstract public function invoke(ServerRequestInterface $request, ResponseInterface $response, array $args); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, array $args) |
||
| 42 | } |
||
| 43 |