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 59de48e

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

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎extension.neon‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ 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/Authorization/Voter/VoterInterface.stub
4344
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
4445
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
4546
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
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 によって変換されたページ (->オリジナル) /