Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| SucheController | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| suche | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Controller; |
| 4 | |
| 5 | use Olz\Suche\Components\OlzSuche\OlzSuche; |
| 6 | use Olz\Utils\HttpUtils; |
| 7 | use Psr\Log\LoggerInterface; |
| 8 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
| 9 | use Symfony\Component\HttpFoundation\Request; |
| 10 | use Symfony\Component\HttpFoundation\Response; |
| 11 | use Symfony\Component\Routing\Annotation\Route; |
| 12 | |
| 13 | class SucheController extends AbstractController { |
| 14 | #[Route('/suche')] |
| 15 | public function suche( |
| 16 | Request $request, |
| 17 | LoggerInterface $logger, |
| 18 | HttpUtils $httpUtils, |
| 19 | OlzSuche $olzSuche, |
| 20 | ): Response { |
| 21 | $httpUtils->countRequest($request); |
| 22 | $out = $olzSuche->getHtml([]); |
| 23 | return new Response($out); |
| 24 | } |
| 25 | } |