src/Leevel/Di/Container.php
protected function parseClassReflection(string $injection): array
    {
        $reflection = new ReflectionClass($injection);

        if (!$reflection->isInstantiable()) {
            $e = sprintf('Class %s is not instantiable.', $injection);

            throw new InvalidArgumentException($e);
        }

        $param = [];

        if (($constructor = $reflection->getConstructor())) {
            $param = $constructor->getParameters();
        }

        return $param;
    }
protected function parseClassReflection(string $injection): array
    {
        $reflection = new ReflectionClass($injection);

        if (!$reflection->isInstantiable()) {
            $e = sprintf('Class %s is not instantiable.', $injection);

            throw new InvalidArgumentException($e);
        }

        $param = [];

        if (($constructor = $reflection->getConstructor())) {
            $param = $constructor->getParameters();
        }

        return $param;
    }
解析类反射参数.

@param string $injection

@return array