feat: extend teamer dashboard
This commit is contained in:
1 parent
8ff59b3068
commit
b5781df8d9
16 files changed
+286
-30
No files matched your search
@@ -4,6 +4,7 @@ namespace App\Controller\HouseManager\Feedback;
|
||||
|
||||
use App\Entity\Disposition;
|
||||
use App\Entity\Feedback;
|
||||
use App\Entity\User;
|
||||
use App\Event\FeedbackProvidedEvent;
|
||||
use App\Form\FeedbackType;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
@@ -28,6 +29,8 @@ class ProvideController extends AbstractController
|
||||
#[IsGranted('FEEDBACK', subject: 'disposition')]
|
||||
public function index(Disposition $disposition, Request $request): Response
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = $this->getUser();
|
||||
$assignment = $disposition->getAssignment();
|
||||
$destination = $assignment->getDestination();
|
||||
|
||||
@@ -42,7 +45,7 @@ class ProvideController extends AbstractController
|
||||
->getFeedbackSet()
|
||||
;
|
||||
|
||||
$feedback = new Feedback($assignment);
|
||||
$feedback = new Feedback($assignment, $user);
|
||||
|
||||
$form = $this->createForm(FeedbackType::class, $feedback, ['feedback_set' => $feedbackSet]);
|
||||
$form->handleRequest($request);
|
||||
|
||||
Reference in new issue
Block a user