src/ExtendedArgumentValueResolver.php
public function supports(Request $request, ArgumentMetadata $argument)
    {
        $classname = $argument->getType();
        if (!\class_exists($classname)) {
            return false;
        }
        if (\array_key_exists($classname, $this->mappingParameters)) {
            return true;
        }
        else {
            foreach ($this->mappingParameters as $value) {
                if ($value instanceof $classname) {
                    return true;
                }
            }
            
            return false;
        }
    }
public function supports(Request $request, ArgumentMetadata $argument)
    {
        $classname = $argument->getType();
        if (!\class_exists($classname)) {
            return false;
        }
        if (\array_key_exists($classname, $this->mappingParameters)) {
            return true;
        }
        else {
            foreach ($this->mappingParameters as $value) {
                if ($value instanceof $classname) {
                    return true;
                }
            }
            
            return false;
        }
    }
public function supports ( Request $ request , ArgumentMetadata $ argument ) { $ classname = $ argument -> getType ( ) ; if ( ! \ class_exists ( $ classname ) ) { return false ; } if ( \ array_key_exists ( $ classname , $ this -> mappingParameters ) ) { return true ; } else { foreach ( $ this -> mappingParameters as $ value ) { if ( $ value instanceof $ classname ) { return true ; } } return false ; } }
Whether this resolver can resolve the value for the given ArgumentMetadata.

@param Request          $request
@param ArgumentMetadata $argument

@return bool
Whether this resolver can resolve the value for the given ArgumentMetadata .