private function getUndefined($fqClassName, array $parameters)
    {
        // Only use ReflectionClass if parameters are needed in constructor
        if (!empty($parameters)) {
            $reflectionClass = new ReflectionClass($fqClassName);
            return $reflectionClass->newInstanceArgs($parameters);
        }

        return new $fqClassName;
    }
private function getUndefined($fqClassName, array $parameters)
    {
        // Only use ReflectionClass if parameters are needed in constructor
        if (!empty($parameters)) {
            $reflectionClass = new ReflectionClass($fqClassName);
            return $reflectionClass->newInstanceArgs($parameters);
        }

        return new $fqClassName;
    }
private function getUndefined ( $ fqClassName , array $ parameters ) { // Only use ReflectionClass if parameters are needed in constructor if ( ! empty ( $ parameters ) ) { $ reflectionClass = new ReflectionClass ( $ fqClassName ) ; return $ reflectionClass -> newInstanceArgs ( $ parameters ) ; } return new $ fqClassName ; }
If the service has not been defined within the container, attempt to instantiate the class directly

@param string $fqClassName Fully qualified class name
@param array  $parameters Parameters object may require for constructor
@return object
If the service has not been defined within the container attempt to instantiate the class directly