public function createAutoWireClosure($className, callable $parameterFactory = null)
    {
        return function (Container $app) use ($className, $parameterFactory) {
            $parameters = $parameterFactory ? $parameterFactory($app) : [];
            return $this->injector->create($className, $parameters);
        };
    }