Creates a new lazy proxy instance of the given class with
the given initializer.
public createProxy ( string $className, Closure $initializer ) : ProxyManager\Proxy\LazyLoadingInterface | ||
$className | string | name of the class to be proxied |
$initializer | Closure | initializer to be passed to the proxy |
return | ProxyManager\Proxy\LazyLoadingInterface |