protected function bindFactoryProxy($typeName, callable $factory)
	{
		$proxy = $this->initializeProxy($typeName, $factory);
		
		$this->scopedProxies[$proxy->K2GetProxyBinding()] = $proxy;
		$this->container->bindInstance($typeName, $proxy, true);
		
		return $proxy;
	}
protected function bindFactoryProxy($typeName, callable $factory)
	{
		$proxy = $this->initializeProxy($typeName, $factory);
		
		$this->scopedProxies[$proxy->K2GetProxyBinding()] = $proxy;
		$this->container->bindInstance($typeName, $proxy, true);
		
		return $proxy;
	}
protected function bindFactoryProxy ( $ typeName , callable $ factory ) { $ proxy = $ this -> initializeProxy ( $ typeName , $ factory ) ; $ this -> scopedProxies [ $ proxy -> K2GetProxyBinding ( ) ] = $ proxy ; $ this -> container -> bindInstance ( $ typeName , $ proxy , true ) ; return $ proxy ; }
Creates a factory-based proxy for the target type and binds it to the DI container.

@param string $typeName
@param callable $factory
@return ScopedProxyInterface
Creates a factory - based proxy for the target type and binds it to the DI container .