You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
71
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
78
72
79
73
// Special case for AccessListener, do not remove the right side of the condition before 6.0
80
74
if (\count($attributes) > 1 && !$allowMultipleAttributes) {
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ final public function getDecision($attribute, $subject = null): AccessDecision
51
51
}
52
52
53
53
if (!method_exists($this->accessDecisionManager, 'getDecision')) {
54
-
trigger_deprecation('symfony/security-core', '6.2', 'Not implementing "%s::getDecision()" method is deprecated, and would be required in 7.0.', \get_class($this->accessDecisionManager));
54
+
trigger_deprecation('symfony/security-core', '6.3', 'Not implementing "%s::getDecision()" method is deprecated, and would be required in 7.0.', \get_class($this->accessDecisionManager));
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/Strategy/AffirmativeStrategy.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ public function getDecision(\Traversable $votes): AccessDecision
63
63
64
64
publicfunctiondecide(\Traversable$results): bool
65
65
{
66
-
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
66
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
@@ -84,12 +81,9 @@ public function getDecision(\Traversable $votes): AccessDecision
84
81
;
85
82
}
86
83
87
-
/**
88
-
* {@inheritdoc}
89
-
*/
90
84
publicfunctiondecide(\Traversable$results): bool
91
85
{
92
-
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
86
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/Strategy/PriorityStrategy.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ public function getDecision(\Traversable $votes): AccessDecision
59
59
60
60
publicfunctiondecide(\Traversable$results): bool
61
61
{
62
-
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
62
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/Strategy/UnanimousStrategy.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ public function getDecision(\Traversable $votes): AccessDecision
64
64
65
65
publicfunctiondecide(\Traversable$results): bool
66
66
{
67
-
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
67
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
72
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::decide()" has been deprecated, use "%s::getDecision()" instead.', __CLASS__, __CLASS__);
76
73
77
74
$currentDecisionLog = [
78
75
'attributes' => $attributes,
@@ -100,7 +97,7 @@ public function decide(TokenInterface $token, array $attributes, mixed $object =
trigger_deprecation('symfony/security-core', '6.2', 'Passing an int as the third argument to "%s::addVoterVote()" is deprecated, pass an instance of "%s" instead.', __CLASS__, Vote::class);
100
+
trigger_deprecation('symfony/security-core', '6.3', 'Passing an int as the third argument to "%s::addVoterVote()" is deprecated, pass an instance of "%s" instead.', __CLASS__, Vote::class);
trigger_deprecation('symfony/security-core', '6.2', 'Returning a boolean in "%s::voteOnAttribute()" is deprecated, return an instance of "%s" instead.', static::class, Vote::class);
52
+
trigger_deprecation('symfony/security-core', '6.3', 'Returning a boolean in "%s::voteOnAttribute()" is deprecated, return an instance of "%s" instead.', static::class, Vote::class);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Event/VoteEvent.php
+3-3
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ public function __construct(VoterInterface $voter, mixed $subject, array $attrib
36
36
$this->attributes = $attributes;
37
37
38
38
if (!$voteinstanceof Vote) {
39
-
trigger_deprecation('symfony/security-core', '6.2', 'Passing an int as the fourth argument to "%s::__construct" is deprecated, pass a "%s" instance instead.', __CLASS__, Vote::class);
39
+
trigger_deprecation('symfony/security-core', '6.3', 'Passing an int as the fourth argument to "%s::__construct" is deprecated, pass a "%s" instance instead.', __CLASS__, Vote::class);
40
40
41
41
$vote = newVote($vote);
42
42
}
@@ -59,11 +59,11 @@ public function getAttributes(): array
59
59
}
60
60
61
61
/**
62
-
* @deprecated since Symfony 6.2, use {@see getVoteDecision()} instead.
62
+
* @deprecated since Symfony 6.3, use {@see getVoteDecision()} instead.
63
63
*/
64
64
publicfunctiongetVote(): int
65
65
{
66
-
trigger_deprecation('symfony/security-core', '6.2', 'Method "%s::getVote()" has been deprecated, use "%s::getVoteDecision()" instead.', __CLASS__, __CLASS__);
66
+
trigger_deprecation('symfony/security-core', '6.3', 'Method "%s::getVote()" has been deprecated, use "%s::getVoteDecision()" instead.', __CLASS__, __CLASS__);
0 commit comments