Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Logout | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
readResponse | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * @package Zmsstatistic |
5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
6 | **/ |
7 | |
8 | namespace BO\Zmsstatistic; |
9 | |
10 | use BO\Slim\Render; |
11 | use Psr\Http\Message\RequestInterface; |
12 | use Psr\Http\Message\ResponseInterface; |
13 | |
14 | class Logout extends BaseController |
15 | { |
16 | /** |
17 | * @SuppressWarnings(Param) |
18 | * @return ResponseInterface |
19 | */ |
20 | public function readResponse( |
21 | RequestInterface $request, |
22 | ResponseInterface $response, |
23 | array $args |
24 | ) { |
25 | \App::$http->readDeleteResult('/workstation/login/' . $this->workstation->useraccount['id'] . '/'); |
26 | return Render::redirect( |
27 | 'index', |
28 | array( |
29 | 'title' => 'Anmeldung' |
30 | ), |
31 | array() |
32 | ); |
33 | } |
34 | } |