if ($attribute->disabled
) { $disabledResolvers[$attribute->resolver
] = true;
} elseif ($resolverName) { throw new \
LogicException(sprintf('You can only pin one resolver per argument, but argument "$%s" of "%s()" has more.',
$metadata->
getName(),
$this->
getPrettyName($controller)));
} else { $resolverName =
$attribute->resolver;
} } if ($resolverName) { if (!
$this->namedResolvers->
has($resolverName)) { throw new ResolverNotFoundException($resolverName,
$this->namedResolvers instanceof ServiceProviderInterface ?
array_keys($this->namedResolvers->
getProvidedServices()) :
[]);
} $argumentValueResolvers =
[ $this->namedResolvers->
get($resolverName),
new DefaultValueResolver(),
];
} } foreach ($argumentValueResolvers as $name =>
$resolver) { if ((!
$resolver instanceof ValueResolverInterface ||
$resolver instanceof TraceableValueResolver
) && !
$resolver->
supports($request,
$metadata)) {