Skip to content

Commit 69d0cbf

Browse files
VincentLangletondrejmirtes
authored andcommitted
Add stubs for Acl
1 parent a66467f commit 69d0cbf

7 files changed

+76
-0
lines changed

extension.neon

+6
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
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+
}
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+
}
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+
}
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+
}
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+
}
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)