Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 78c38a0

Browse files
VincentLangletondrejmirtes
authored andcommitted
Precise array key and values returns by AclInterface methods
1 parent a4d4781 commit 78c38a0

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

‎extension.neon‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ parameters:
2727
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
2828
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
2929
- stubs/Symfony/Component/Security/Acl/Model/AclProviderInterface.stub
30+
- stubs/Symfony/Component/Security/Acl/Model/EntryInterface.stub
3031
- stubs/Symfony/Component/Security/Acl/Model/MutableAclInterface.stub
3132
- stubs/Symfony/Component/Security/Acl/Model/MutableAclProviderInterface.stub
3233
- stubs/Symfony/Component/Security/Acl/Model/ObjectIdentityInterface.stub

‎stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,36 @@ namespace Symfony\Component\Security\Acl\Model;
55
interface AclInterface
66
{
77

8+
/**
9+
* Returns all class-based ACEs associated with this ACL.
10+
*
11+
* @return array<int, EntryInterface>
12+
*/
13+
public function getClassAces();
14+
15+
/**
16+
* Returns all class-field-based ACEs associated with this ACL.
17+
*
18+
* @param string $field
19+
*
20+
* @return array<int, EntryInterface>
21+
*/
22+
public function getClassFieldAces($field);
23+
24+
/**
25+
* Returns all object-based ACEs associated with this ACL.
26+
*
27+
* @return array<int, EntryInterface>
28+
*/
29+
public function getObjectAces();
30+
31+
/**
32+
* Returns all object-field-based ACEs associated with this ACL.
33+
*
34+
* @param string $field
35+
*
36+
* @return array<int, EntryInterface>
37+
*/
38+
public function getObjectFieldAces($field);
39+
840
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface EntryInterface
6+
{
7+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /