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