protected function autoBindFactory($className, callable $parameterFactory = null)
    {
        $this->bindFactory(
            $className,
            $this->closureFactory->createAutoWireClosure($className, $parameterFactory)
        );
    }
protected function autoBindFactory($className, callable $parameterFactory = null)
    {
        $this->bindFactory(
            $className,
            $this->closureFactory->createAutoWireClosure($className, $parameterFactory)
        );
    }
protected function autoBindFactory ( $ className , callable $ parameterFactory = null ) { $ this -> bindFactory ( $ className , $ this -> closureFactory -> createAutoWireClosure ( $ className , $ parameterFactory ) ) ; }
Automatically bind and wire a factory using the Injector. Accepts an optional callable to build parameter
overrides.

@param string $className FQCN of a class to auto-wire bind.
@param callable|null $parameterFactory Callable to generate parameters to inject to the service. Will receive
the IoC container as its first parameter.
@throws \Exception
@return void
Automatically bind and wire a factory using the Injector . Accepts an optional callable to build parameter overrides .