add annotated routing to controller
Closed this issue · 2 comments
hxtree commented
https://symfony.com/doc/current/controller.html
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class LuckyController
{
/**
* @Route("/lucky/number/{max}", name="app_lucky_number")
*/
public function number(int $max): Response
{
$number = random_int(0, $max);
hxtree commented
maybe first implement for dynamic images