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