From 6bd10664284c4386d587abd153e4cbd6bb3184a9 Mon Sep 17 00:00:00 2001 From: Michael van den Eijnden Date: Wed, 4 Dec 2024 11:04:59 -0600 Subject: [PATCH] Put back security module --- src/Handler/EntityHandler.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Handler/EntityHandler.php b/src/Handler/EntityHandler.php index 8a7e2603d..9a552f251 100644 --- a/src/Handler/EntityHandler.php +++ b/src/Handler/EntityHandler.php @@ -19,6 +19,7 @@ use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\Id\AssignedGenerator; use Doctrine\ORM\Mapping\ClassMetadata; +use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; @@ -68,23 +69,27 @@ class EntityHandler private $fundingOrgFilter; /** - * Constructor for EntityHandler. + * Security Bundle. * - * @param EntityManagerInterface $entityManager The entity manager to use. - * @param AuthorizationCheckerInterface $authorizationChecker The authorization checker to use. - * @param EntityEventDispatcher $entityEventDispatcher The entity event dispatcher. - * @param FundingOrgFilter $fundingOrgFilter Utility to filter by funding organization. + * @var Security + */ + private $security; + + /** + * Constructor for EntityHandler. */ public function __construct( EntityManagerInterface $entityManager, AuthorizationCheckerInterface $authorizationChecker, EntityEventDispatcher $entityEventDispatcher, - FundingOrgFilter $fundingOrgFilter + FundingOrgFilter $fundingOrgFilter, + Security $security ) { $this->entityManager = $entityManager; $this->authorizationChecker = $authorizationChecker; $this->entityEventDispatcher = $entityEventDispatcher; $this->fundingOrgFilter = $fundingOrgFilter; + $this->security = $security; } /**