public function __construct(array $resolvers)
{
foreach ($resolvers as $index => $resolver) {
if (false === $resolver instanceof ChainableParameterResolverInterface) {
throw TypeErrorFactory::createForInvalidChainableParameterResolver($resolver);
}
if ($resolver instanceof ParameterResolverAwareInterface) {
$resolvers[$index] = $resolver->withResolver($this);
}
}
$this->resolvers = $resolvers;
}