Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| LogsController | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| index | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Apps\Logs; |
| 4 | |
| 5 | use Olz\Apps\Logs\Components\OlzLogs\OlzLogs; |
| 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 LogsController extends AbstractController { |
| 14 | #[Route('/apps/logs')] |
| 15 | public function index( |
| 16 | Request $request, |
| 17 | LoggerInterface $logger, |
| 18 | HttpUtils $httpUtils, |
| 19 | OlzLogs $olzLogs, |
| 20 | ): Response { |
| 21 | $httpUtils->countRequest($request); |
| 22 | $html_out = $olzLogs->getHtml([]); |
| 23 | return new Response($html_out); |
| 24 | } |
| 25 | } |