PHP Class DI\Proxy\ProxyFactory

Wraps Ocramius/ProxyManager LazyLoadingValueHolderFactory.
See also: ProxyManager\Factory\LazyLoadingValueHolderFactory
Since: 5.0
Author: Matthieu Napoli ([email protected])
Afficher le fichier Open project: mnapoli/php-di Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $writeProxiesToFile, $proxyDirectory = null )
createProxy ( string $className, Closure $initializer ) : ProxyManager\Proxy\LazyLoadingInterface Creates a new lazy proxy instance of the given class with the given initializer.

Private Methods

Méthode Description
createProxyManager ( )

Method Details

__construct() public méthode

public __construct ( $writeProxiesToFile, $proxyDirectory = null )

createProxy() public méthode

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
Résultat ProxyManager\Proxy\LazyLoadingInterface