Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
RedirectOld
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 readResponse
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3/**
4 *
5 * @package Zmsticketprinter
6 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
7 *
8 */
9
10namespace BO\Zmsticketprinter;
11
12use BO\Slim\Render;
13use Psr\Http\Message\RequestInterface;
14use Psr\Http\Message\ResponseInterface;
15
16class 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}