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 f4cb3b8

Browse files
yguedidiondrejmirtes
authored andcommitted
Add stub for VoterInterface
1 parent 140f410 commit f4cb3b8

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
@@ -45,6 +45,8 @@ parameters:
4545
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
4646
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
4747
- stubs/Symfony/Component/Security/Acl/Model/EntryInterface.stub
48+
- stubs/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.stub
49+
- stubs/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.stub
4850
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
4951
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
5052
- 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 によって変換されたページ (->オリジナル) /