| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 0.00% | 0 / 6 |  | 0.00% | 0 / 2 | CRAP |  | 0.00% | 0 / 1 | 
| FaqController |  | 0.00% | 0 / 6 |  | 0.00% | 0 / 2 | 6 |  | 0.00% | 0 / 1 | 
| list |  | 0.00% | 0 / 3 |  | 0.00% | 0 / 1 | 2 | |||
| detail |  | 0.00% | 0 / 3 |  | 0.00% | 0 / 1 | 2 | |||
| 1 | <?php | 
| 2 | |
| 3 | namespace Olz\Controller; | 
| 4 | |
| 5 | use Olz\Faq\Components\OlzFaqDetail\OlzFaqDetail; | 
| 6 | use Olz\Faq\Components\OlzFaqList\OlzFaqList; | 
| 7 | use Olz\Utils\HttpUtils; | 
| 8 | use Psr\Log\LoggerInterface; | 
| 9 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | 
| 10 | use Symfony\Component\HttpFoundation\Request; | 
| 11 | use Symfony\Component\HttpFoundation\Response; | 
| 12 | use Symfony\Component\Routing\Annotation\Route; | 
| 13 | |
| 14 | class FaqController extends AbstractController { | 
| 15 | #[Route('/fragen_und_antworten')] | 
| 16 | public function list( | 
| 17 | Request $request, | 
| 18 | LoggerInterface $logger, | 
| 19 | HttpUtils $httpUtils, | 
| 20 | OlzFaqList $olzFaqList, | 
| 21 | ): Response { | 
| 22 | $httpUtils->countRequest($request, ['von']); | 
| 23 | $out = $olzFaqList->getHtml([]); | 
| 24 | return new Response($out); | 
| 25 | } | 
| 26 | |
| 27 | #[Route('/fragen_und_antworten/{ident}')] | 
| 28 | public function detail( | 
| 29 | Request $request, | 
| 30 | LoggerInterface $logger, | 
| 31 | HttpUtils $httpUtils, | 
| 32 | OlzFaqDetail $olzFaqDetail, | 
| 33 | string $ident, | 
| 34 | ): Response { | 
| 35 | $httpUtils->countRequest($request, ['von']); | 
| 36 | $out = $olzFaqDetail->getHtml(['ident' => $ident]); | 
| 37 | return new Response($out); | 
| 38 | } | 
| 39 | } |