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
minor #49636 [HttpKernel] Renamed "pinned" to "targeted" for value resolvers (nicolas-grekas)
This PR was merged into the 6.3 branch.
Discussion
----------
[HttpKernel] Renamed "pinned" to "targeted" for value resolvers
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
"pinned" was introduced in #48992 but a quick chat within the core-team lead to this proposal, which might be preferred. WDYT?
Commits
-------
ad58cc6 [HttpKernel] Renamed "pinned" to "targeted" for value resolvers
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
+2-2
Original file line number
Diff line number
Diff line change
@@ -58,11 +58,11 @@ public function getArguments(Request $request, callable $controller, \Reflection
58
58
$resolverName = null;
59
59
foreach ($attributesas$attribute) {
60
60
if ($attribute->disabled) {
61
-
$disabledResolvers[$attribute->name] = true;
61
+
$disabledResolvers[$attribute->resolver] = true;
62
62
} elseif ($resolverName) {
63
63
thrownew \LogicException(sprintf('You can only pin one resolver per argument, but argument "$%s" of "%s()" has more.', $metadata->getName(), $this->getPrettyName($controller)));
0 commit comments