src/Leevel/Di/Container.php
protected function parseClassFromContainer(string $argsclass)
    {
        $itemMake = $this->make($argsclass);

        // 实例对象
        if (is_object($itemMake)) {
            return $itemMake;
        }

        // 接口绑定实现
        $result = $this->make($itemMake);

        if (!is_object($result)) {
            $e = sprintf('Class or interface %s is register in container is not object.', $argsclass);

            throw new InvalidArgumentException($e);
        }

        return $result;
    }
protected function parseClassFromContainer(string $argsclass)
    {
        $itemMake = $this->make($argsclass);

        // 实例对象
        if (is_object($itemMake)) {
            return $itemMake;
        }

        // 接口绑定实现
        $result = $this->make($itemMake);

        if (!is_object($result)) {
            $e = sprintf('Class or interface %s is register in container is not object.', $argsclass);

            throw new InvalidArgumentException($e);
        }

        return $result;
    }
从服务容器中获取解析反射参数类实例.

@param string $argsclass

@return bool|object