src/Leevel/Di/Container.php
protected function newInstanceArgs(string $classname, array $args)
    {
        try { // @codeCoverageIgnore
            return (new ReflectionClass($classname))->newInstanceArgs($args);
        } catch (ReflectionException $e) { // @codeCoverageIgnore
            return (new ReflectionClass($classname))->newInstanceWithoutConstructor(); // @codeCoverageIgnore
        } // @codeCoverageIgnore
    }
protected function newInstanceArgs(string $classname, array $args)
    {
        try { // @codeCoverageIgnore
            return (new ReflectionClass($classname))->newInstanceArgs($args);
        } catch (ReflectionException $e) { // @codeCoverageIgnore
            return (new ReflectionClass($classname))->newInstanceWithoutConstructor(); // @codeCoverageIgnore
        } // @codeCoverageIgnore
    }
动态创建实例对象.
zephir 版本会执行到 newInstanceWithoutConstructor.
例子：Class Tests\\Event\\ListenerNotExtends does not
have a constructor, so you cannot pass any constructor arguments.

@param string $classname
@param array  $args

@return mixed