public function isResolvable($type)
    {
        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Can not check resolvable: type must be a string'
            );
        }

        $map = $this->map();
        if (isset($map[$type])) {
            $type = $map[$type];
        }

        if (class_exists($type)) {
            return true;
        }

        $resolver = $this->resolver();
        $resolved = $resolver($type);
        if (class_exists($resolved)) {
            return true;
        }

        return false;
    }
public function isResolvable($type)
    {
        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Can not check resolvable: type must be a string'
            );
        }

        $map = $this->map();
        if (isset($map[$type])) {
            $type = $map[$type];
        }

        if (class_exists($type)) {
            return true;
        }

        $resolver = $this->resolver();
        $resolved = $resolver($type);
        if (class_exists($resolved)) {
            return true;
        }

        return false;
    }
public function isResolvable ( $ type ) { if ( ! is_string ( $ type ) ) { throw new InvalidArgumentException ( 'Can not check resolvable: type must be a string' ) ; } $ map = $ this -> map ( ) ; if ( isset ( $ map [ $ type ] ) ) { $ type = $ map [ $ type ] ; } if ( class_exists ( $ type ) ) { return true ; } $ resolver = $ this -> resolver ( ) ; $ resolved = $ resolver ( $ type ) ; if ( class_exists ( $ resolved ) ) { return true ; } return false ; }
Whether a `type` is resolvable. The Generic Factory simply checks if the _FQN_ `type` class exists.

@param string $type The "type" of object to resolve (the object ident).
@throws InvalidArgumentException If the type parameter is not a string.
@return boolean
Whether a type is resolvable . The Generic Factory simply checks if the _FQN_ type class exists .