protected function getMethodDependencies(ReflectionFunctionAbstract $method, array $primitives = [])
    {
        $params = $method->getParameters();

        $resolvedParams = [];
        $i = 0;
        foreach ($params as $param) {
            if ($class = $param->getClass()) {
                $resolvedParams[] = $this->make($class->getName());
            } else if (isset($primitives[$i])) {
                $resolvedParams[] = $primitives[$i++];
            }
        }

        return $resolvedParams;
    }