WIP: Implement feedback functionality
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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\Annotation\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_ADMIN')]
|
||||
public function index(): Response
|
||||
{
|
||||
$feedbackSets = $this
|
||||
->feedbackSetRepository
|
||||
->findAll()
|
||||
;
|
||||
|
||||
return $this->render('admin/system/feedback_set/index.html.twig', [
|
||||
'feedbackSets' => $feedbackSets,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user