31 lines
888 B
PHP
31 lines
888 B
PHP
<?php
|
|
|
|
namespace App\Controller\Admin\System\FeedbackSet;
|
|
|
|
use App\Repository\FeedbackSetRepository;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
use Symfony\Component\Security\Http\Attribute\IsGranted;
|
|
|
|
class IndexController extends AbstractController
|
|
{
|
|
public function __construct(private readonly FeedbackSetRepository $feedbackSetRepository)
|
|
{
|
|
}
|
|
|
|
#[Route('/admin/system/feedback-set', name: 'app_admin_system_feedback_set_index')]
|
|
#[IsGranted('ROLE_TEAM_ADMIN')]
|
|
public function index(): Response
|
|
{
|
|
$feedbackSets = $this
|
|
->feedbackSetRepository
|
|
->findAll()
|
|
;
|
|
|
|
return $this->render('admin/system/feedback_set/index.html.twig', [
|
|
'feedbackSets' => $feedbackSets,
|
|
]);
|
|
}
|
|
}
|