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 236849b

Browse files
Add stubs for Acl
1 parent a66467f commit 236849b

File tree

7 files changed

+76
-0
lines changed

7 files changed

+76
-0
lines changed

‎extension.neon‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ parameters:
2222
- stubs/Symfony/Component/HttpFoundation/Session.stub
2323
- stubs/Symfony/Component/Process/Process.stub
2424
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
25+
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
26+
- stubs/Symfony/Component/Security/Acl/Model/AclProviderInterface.stub
27+
- stubs/Symfony/Component/Security/Acl/Model/MutableAclInterface.stub
28+
- stubs/Symfony/Component/Security/Acl/Model/MutableAclProviderInterface.stub
29+
- stubs/Symfony/Component/Security/Acl/Model/ObjectIdentityInterface.stub
30+
- stubs/Symfony/Component/Security/Acl/Model/SecurityIdentityInterface.stub
2531
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
2632
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
2733
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface AclInterface
6+
{
7+
8+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface AclProviderInterface
6+
{
7+
/**
8+
* @phpstan-param array<SecurityIdentityInterface> $sids
9+
* @phpstan-return AclInterface
10+
*/
11+
public function findAcl(ObjectIdentityInterface $oid, array $sids = []);
12+
13+
/**
14+
* @phpstan-param array<ObjectIdentityInterface> $oids
15+
* @phpstan-param array<SecurityIdentityInterface> $sids
16+
* @phpstan-return \SplObjectStorage<ObjectIdentityInterface, AclInterface>
17+
*/
18+
public function findAcls(array $oids, array $sids = []);
19+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface MutableAclInterface extends AclInterface
6+
{
7+
8+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface MutableAclProviderInterface extends AclProviderInterface
6+
{
7+
/**
8+
* @phpstan-param array<SecurityIdentityInterface> $sids
9+
* @phpstan-return MutableAclInterface
10+
*/
11+
public function findAcl(ObjectIdentityInterface $oid, array $sids = []);
12+
13+
/**
14+
* @phpstan-param array<ObjectIdentityInterface> $oids
15+
* @phpstan-param array<SecurityIdentityInterface> $sids
16+
* @phpstan-return \SplObjectStorage<ObjectIdentityInterface, MutableAclInterface>
17+
*/
18+
public function findAcls(array $oids, array $sids = []);
19+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface ObjectIdentityInterface
6+
{
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Acl\Model;
4+
5+
interface SecurityIdentityInterface
6+
{
7+
8+
}

0 commit comments

Comments
(0)

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