private function createProxy($className, callable $serviceFactory, Container $app)
    {
        return $this->proxyFactory->createProxy(
            $className,
            function (&$wrappedObject, $proxy, $method, $parameters, &$initializer) use (
                $className,
                $serviceFactory,
                $app
            ) {
                $wrappedObject = $serviceFactory($app);
                $initializer = null;
                return true;
            }
        );
    }
private function createProxy($className, callable $serviceFactory, Container $app)
    {
        return $this->proxyFactory->createProxy(
            $className,
            function (&$wrappedObject, $proxy, $method, $parameters, &$initializer) use (
                $className,
                $serviceFactory,
                $app
            ) {
                $wrappedObject = $serviceFactory($app);
                $initializer = null;
                return true;
            }
        );
    }
private function createProxy ( $ className , callable $ serviceFactory , Container $ app ) { return $ this -> proxyFactory -> createProxy ( $ className , function ( & $ wrappedObject , $ proxy , $ method , $ parameters , & $ initializer ) use ( $ className , $ serviceFactory , $ app ) { $ wrappedObject = $ serviceFactory ( $ app ) ; $ initializer = null ; return true ; } ) ; }
Create a project object for the specified ClassName bound to the given ServiceFactory method.
@param string $className
@param callable $serviceFactory
@param Container $app
@return \ProxyManager\Proxy\VirtualProxyInterface
Create a project object for the specified ClassName bound to the given ServiceFactory method .