Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| MapController | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| edit | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Controller; |
| 6 | |
| 7 | use Symfony\Component\HttpFoundation\Response; |
| 8 | use Symfony\Component\Routing\Attribute\Route; |
| 9 | use Symfony\Component\Security\Http\Attribute\IsGranted; |
| 10 | |
| 11 | class MapController extends BaseController |
| 12 | { |
| 13 | #[Route(path: '/map/edit', name: 'map-edit', methods: ['GET'])] |
| 14 | #[IsGranted('ROLE_ADMIN')] |
| 15 | public function edit(): Response |
| 16 | { |
| 17 | return $this->render('maps/edit.html.twig'); |
| 18 | } |
| 19 | } |