@@ 57-69 (lines=13) @@ | ||
54 | * locale |
|
55 | * @param string $permission The permission |
|
56 | */ |
|
57 | public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission, AuthorizationCheckerInterface $authorizationChecker) |
|
58 | { |
|
59 | parent::__construct($em, $aclHelper); |
|
60 | $this->locale = $locale; |
|
61 | $this->authorizationChecker = $authorizationChecker; |
|
62 | $this->setPermissionDefinition( |
|
63 | new PermissionDefinition( |
|
64 | array($permission), |
|
65 | 'Kunstmaan\NodeBundle\Entity\Node', |
|
66 | 'n' |
|
67 | ) |
|
68 | ); |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * @param \Kunstmaan\AdminBundle\Helper\DomainConfigurationInterface $domainConfiguration |
@@ 38-45 (lines=8) @@ | ||
35 | * @param string $locale The current locale |
|
36 | * @param string $permission The permission |
|
37 | */ |
|
38 | public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission) |
|
39 | { |
|
40 | parent::__construct($em, $aclHelper); |
|
41 | $this->locale = $locale; |
|
42 | $this->setPermissionDefinition( |
|
43 | new PermissionDefinition(array($permission), 'Kunstmaan\NodeBundle\Entity\Node', 'n') |
|
44 | ); |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * Return current bundle name. |