<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\{Request, Response};
use Symfony\Component\Routing\Annotation\Route;
//use App\Service\TransfermarktService;
class HomeController extends AbstractController
{
//protected $transfermarktService;
public function __construct(
//TransfermarktService $transfermarktService
)
{
//$this->transfermarktService = $transfermarktService;
}
/**
* @Route("/", name="hp")
*/
public function index()
{
$number = random_int(0, 100);
return new Response('<html><body>Lucky number : ' . $number . '</body></html>');
}
}