| @@ 37-47 (lines=11) @@ | ||
| 34 | * @return EmptyResponse |
|
| 35 | * @throws \Exception |
|
| 36 | */ |
|
| 37 | public function __invoke( |
|
| 38 | ServerRequestInterface $request, |
|
| 39 | ResponseInterface $response, |
|
| 40 | callable $next = null |
|
| 41 | ) |
|
| 42 | { |
|
| 43 | parent::__invoke($request, $response, $next); |
|
| 44 | $this->response = $this->action(); |
|
| 45 | ||
| 46 | return $this->next(); |
|
| 47 | } |
|
| 48 | ||
| 49 | protected function action() |
|
| 50 | { |
|
| @@ 39-49 (lines=11) @@ | ||
| 36 | * @return EmptyResponse |
|
| 37 | * @throws \Exception |
|
| 38 | */ |
|
| 39 | public function __invoke( |
|
| 40 | ServerRequestInterface $request, |
|
| 41 | ResponseInterface $response, |
|
| 42 | callable $next = null |
|
| 43 | ) |
|
| 44 | { |
|
| 45 | parent::__invoke($request, $response, $next); |
|
| 46 | $this->response = $this->action(); |
|
| 47 | ||
| 48 | return $this->next(); |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @param $path |
|
| @@ 52-62 (lines=11) @@ | ||
| 49 | * @return EmptyResponse |
|
| 50 | * @throws \Exception |
|
| 51 | */ |
|
| 52 | public function __invoke( |
|
| 53 | ServerRequestInterface $request, |
|
| 54 | ResponseInterface $response, |
|
| 55 | callable $next = null |
|
| 56 | ) |
|
| 57 | { |
|
| 58 | parent::__invoke($request, $response, $next); |
|
| 59 | $this->response = $this->action(); |
|
| 60 | ||
| 61 | return $this->next(); |
|
| 62 | } |
|
| 63 | ||
| 64 | abstract protected function generate(ResourceDOInterface $resourceDO); |
|
| 65 | ||
| @@ 38-48 (lines=11) @@ | ||
| 35 | * @return EmptyResponse |
|
| 36 | * @throws \Exception |
|
| 37 | */ |
|
| 38 | public function __invoke( |
|
| 39 | ServerRequestInterface $request, |
|
| 40 | ResponseInterface $response, |
|
| 41 | callable $next = null |
|
| 42 | ) |
|
| 43 | { |
|
| 44 | parent::__invoke($request, $response, $next); |
|
| 45 | $this->response = $this->action(); |
|
| 46 | ||
| 47 | return $this->next(); |
|
| 48 | } |
|
| 49 | ||
| 50 | abstract protected function search(ResourceDOInterface $resourceDO); |
|
| 51 | ||