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 bf0b036

Browse files
committed
Add stub for VoterInterface
1 parent 5f4d20e commit bf0b036

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

‎extension.neon‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ parameters:
4040
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
4141
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
4242
- stubs/Symfony/Component/Security/Acl/Model/EntryInterface.stub
43+
- stubs/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.stub
44+
- stubs/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.stub
4345
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
4446
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
4547
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
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\Core\Authentication\Token;
4+
5+
interface TokenInterface
6+
{
7+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Core\Authorization\Voter;
4+
5+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
6+
7+
interface VoterInterface
8+
{
9+
/**
10+
* @param mixed $subject
11+
* @param mixed[] $attributes
12+
*
13+
* @return int
14+
*/
15+
public function vote(TokenInterface $token, $subject, array $attributes);
16+
}

0 commit comments

Comments
(0)

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