@@ 57-64 (lines=8) @@ | ||
54 | * @param TokenStorageInterface $tokenStorage The security token storage |
|
55 | * @param RoleHierarchyInterface $rh The role hierarchies |
|
56 | */ |
|
57 | public function __construct(EntityManager $em, TokenStorageInterface $tokenStorage, RoleHierarchyInterface $rh, $permissionsEnabled = true) |
|
58 | { |
|
59 | $this->em = $em; |
|
60 | $this->tokenStorage = $tokenStorage; |
|
61 | $this->quoteStrategy = $em->getConfiguration()->getQuoteStrategy(); |
|
62 | $this->roleHierarchy = $rh; |
|
63 | $this->permissionsEnabled = $permissionsEnabled; |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * Clone specified query with parameters. |
@@ 47-53 (lines=7) @@ | ||
44 | * @param TokenStorageInterface $tokenStorage The security context |
|
45 | * @param RoleHierarchyInterface $rh The role hierarchies |
|
46 | */ |
|
47 | public function __construct(EntityManager $em, TokenStorageInterface $tokenStorage, RoleHierarchyInterface $rh, $permissionsEnabled = true) |
|
48 | { |
|
49 | $this->em = $em; |
|
50 | $this->tokenStorage = $tokenStorage; |
|
51 | $this->roleHierarchy = $rh; |
|
52 | $this->permissionsEnabled = $permissionsEnabled; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Apply the ACL constraints to the specified query builder, using the permission definition |