protected function getConstructorArgumentsForClass($className)
    {
        if (!isset($this->constructorReflectionFirstLevelCache[$className])) {
            $constructorSignature = [];

            // TODO: Check if we can get rid of this reflection service usage, directly reflecting doesn't work as the proxy class __construct has no arguments.
            if ($this->reflectionService->hasMethod($className, '__construct')) {
                $constructorSignature = $this->reflectionService->getMethodParameters($className, '__construct');
            }

            $this->constructorReflectionFirstLevelCache[$className] = $constructorSignature;
        }

        return $this->constructorReflectionFirstLevelCache[$className];
    }
protected function getConstructorArgumentsForClass($className)
    {
        if (!isset($this->constructorReflectionFirstLevelCache[$className])) {
            $constructorSignature = [];

            // TODO: Check if we can get rid of this reflection service usage, directly reflecting doesn't work as the proxy class __construct has no arguments.
            if ($this->reflectionService->hasMethod($className, '__construct')) {
                $constructorSignature = $this->reflectionService->getMethodParameters($className, '__construct');
            }

            $this->constructorReflectionFirstLevelCache[$className] = $constructorSignature;
        }

        return $this->constructorReflectionFirstLevelCache[$className];
    }
protected function getConstructorArgumentsForClass ( $ className ) { if ( ! isset ( $ this -> constructorReflectionFirstLevelCache [ $ className ] ) ) { $ constructorSignature = [ ] ; // TODO: Check if we can get rid of this reflection service usage, directly reflecting doesn't work as the proxy class __construct has no arguments. if ( $ this -> reflectionService -> hasMethod ( $ className , '__construct' ) ) { $ constructorSignature = $ this -> reflectionService -> getMethodParameters ( $ className , '__construct' ) ; } $ this -> constructorReflectionFirstLevelCache [ $ className ] = $ constructorSignature ; } return $ this -> constructorReflectionFirstLevelCache [ $ className ] ; }
Get the constructor argument reflection for the given object type.

@param string $className
@return array<array>
Get the constructor argument reflection for the given object type .