Lines
100.00%
6 / 6
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| RedirectOld | 100.00% | 6 / 6 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| readResponse | 100.00% | 6 / 6 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | /** | |
| 4 | * | |
| 5 | * @package Zmscalldisplay | |
| 6 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG | |
| 7 | * | |
| 8 | */ | |
| 9 | ||
| 10 | namespace BO\Zmscalldisplay; | |
| 11 | ||
| 12 | use Psr\Http\Message\RequestInterface; | |
| 13 | use Psr\Http\Message\ResponseInterface; | |
| 14 | ||
| 15 | class RedirectOld extends BaseController | |
| 16 | { | |
| 17 | /** | |
| 18 | * @SuppressWarnings(UnusedFormalParameter) | |
| 19 | * add params to session if valid and redirect to calendar | |
| 20 | * | |
| 21 | * @return ResponseInterface | |
| 22 | * @psalm-api | |
| 23 | */ | |
| 24 | public function readResponse( | |
| 25 | RequestInterface $request, | |
| 26 | ResponseInterface $response, | |
| 27 | array $args | |
| 28 | ) { | |
| 29 | $collections = Helper\EntryFromOldRoute::getFromOldRoute($request); | |
| 30 | ||
| 31 | return \BO\Slim\Render::redirect( | |
| 32 | 'index', | |
| 33 | array(), | |
| 34 | $collections | |
| 35 | ); | |
| 36 | } | |
| 37 | } |