Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| YoutubeController | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| index | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Apps\Youtube; |
| 4 | |
| 5 | use Olz\Apps\Youtube\Components\OlzYoutube\OlzYoutube; |
| 6 | use Psr\Log\LoggerInterface; |
| 7 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
| 8 | use Symfony\Component\HttpFoundation\Request; |
| 9 | use Symfony\Component\HttpFoundation\Response; |
| 10 | use Symfony\Component\Routing\Annotation\Route; |
| 11 | |
| 12 | class YoutubeController extends AbstractController { |
| 13 | #[Route('/apps/youtube')] |
| 14 | public function index( |
| 15 | Request $request, |
| 16 | LoggerInterface $logger, |
| 17 | OlzYoutube $olzYoutube, |
| 18 | ): Response { |
| 19 | $html_out = $olzYoutube->getHtml([]); |
| 20 | return new Response($html_out); |
| 21 | } |
| 22 | } |