src/Leevel/Di/Container.php
protected function parseClosureReflection(Closure $injection): array
    {
        $reflection = new ReflectionFunction($injection);

        if (!($param = $reflection->getParameters())) {
            $param = [];
        }

        return $param;
    }
protected function parseClosureReflection(Closure $injection): array
    {
        $reflection = new ReflectionFunction($injection);

        if (!($param = $reflection->getParameters())) {
            $param = [];
        }

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

@param Closure $injection

@return array