@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sonata\AdminBundle\Security\Handler\AclSecurityHandlerInterface; |
18 | 18 | use Symfony\Component\Form\Form; |
19 | 19 | use Symfony\Component\Form\FormInterface; |
20 | -use Symfony\Component\Security\Acl\Domain\Acl; |
|
21 | 20 | use Symfony\Component\Security\Acl\Model\MutableAclInterface; |
22 | 21 | |
23 | 22 | /** |
@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | use Sonata\AdminBundle\Form\Type\AclMatrixType; |
17 | 17 | use Symfony\Component\Form\Extension\Core\Type\FormType; |
18 | -use Symfony\Component\Form\Form; |
|
19 | 18 | use Symfony\Component\Form\FormBuilderInterface; |
20 | 19 | use Symfony\Component\Form\FormFactoryInterface; |
21 | 20 | use Symfony\Component\Form\FormInterface; |
@@ -191,6 +191,7 @@ |
||
191 | 191 | * NEXT_MAJOR: change signature to `addObjectOwner(MutableAclInterface $acl, ?UserSecurityIdentity $securityIdentity = null): void`. |
192 | 192 | * |
193 | 193 | * @param MutableAclInterface $acl |
194 | + * @param UserSecurityIdentity $securityIdentity |
|
194 | 195 | * |
195 | 196 | * @return void |
196 | 197 | */ |
@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | { |
26 | 26 | /** |
27 | 27 | * Set the permissions not related to an object instance and also to be available when objects do not exist. |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function setAdminPermissions(array $permissions); |
30 | 31 | |
@@ -37,6 +38,7 @@ discard block |
||
37 | 38 | |
38 | 39 | /** |
39 | 40 | * Set the permissions related to an object instance. |
41 | + * @return void |
|
40 | 42 | */ |
41 | 43 | public function setObjectPermissions(array $permissions); |
42 | 44 | |
@@ -110,6 +112,7 @@ discard block |
||
110 | 112 | |
111 | 113 | /** |
112 | 114 | * Delete the ACL. |
115 | + * @return void |
|
113 | 116 | */ |
114 | 117 | public function deleteAcl(ObjectIdentityInterface $objectIdentity); |
115 | 118 | |
@@ -120,7 +123,7 @@ discard block |
||
120 | 123 | * |
121 | 124 | * @param string $role |
122 | 125 | * |
123 | - * @return array-key|false index if found, FALSE if not found |
|
126 | + * @return integer index if found, FALSE if not found |
|
124 | 127 | */ |
125 | 128 | public function findClassAceIndexByRole(AclInterface $acl, $role); |
126 | 129 |