1 |
1f77dd64
|
ballakt
|
<?php
|
2 |
|
|
|
3 |
|
|
namespace App\Controller;
|
4 |
|
|
|
5 |
|
|
use Symfony\Component\HttpFoundation\Response;
|
6 |
|
|
|
7 |
|
|
class DefaultController {
|
8 |
|
|
public function index(): Response {
|
9 |
|
|
$number = random_int(0, 100);
|
10 |
|
|
|
11 |
|
|
return new Response(
|
12 |
|
|
'<html><body>'.$number.'</body></html>'
|
13 |
|
|
);
|
14 |
|
|
}
|
15 |
|
|
}
|