Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| MailTemplateDeleteCustomization | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| readResponse | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @package Zmsadmin |
| 5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
| 6 | **/ |
| 7 | |
| 8 | namespace BO\Zmsadmin\Helper; |
| 9 | |
| 10 | use BO\Zmsadmin\BaseController; |
| 11 | |
| 12 | class MailTemplateDeleteCustomization extends BaseController |
| 13 | { |
| 14 | /** |
| 15 | * @SuppressWarnings(Param) |
| 16 | * @return \Psr\Http\Message\ResponseInterface |
| 17 | */ |
| 18 | #[\Override] |
| 19 | public function readResponse( |
| 20 | \Psr\Http\Message\RequestInterface $request, |
| 21 | \Psr\Http\Message\ResponseInterface $response, |
| 22 | array $args |
| 23 | ) { |
| 24 | |
| 25 | $validator = $request->getAttribute('validator'); |
| 26 | $input = $validator->getInput()->isJson()->getValue(); |
| 27 | |
| 28 | $result = \App::$http->readDeleteResult('/mailtemplates/' . $input['templateId'] . '/'); |
| 29 | |
| 30 | return \BO\Slim\Render::withJson( |
| 31 | $response, |
| 32 | $result |
| 33 | ); |
| 34 | } |
| 35 | } |