Skip to content

Commit

Permalink
Merge pull request #1687 from griidc/hotfix/6.65.1
Browse files Browse the repository at this point in the history
Put back security module
  • Loading branch information
mickel1138 authored Dec 4, 2024
2 parents 6b4866e + 6bd1066 commit 9ff6bf1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/Handler/EntityHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 9ff6bf1

Please sign in to comment.