src/Middlewares/ActionPostAbstract.php 1 location
|
@@ 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 |
|
|
src/Middlewares/ActionSearchAbstract.php 1 location
|
@@ 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 |
|
|
src/Middlewares/ActionGetAbstract.php 1 location
|
@@ 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 string $path |