PHP Класс DI\Proxy\ProxyFactory

Wraps Ocramius/ProxyManager LazyLoadingValueHolderFactory.
См. также: ProxyManager\Factory\LazyLoadingValueHolderFactory
С версии: 5.0
Автор: Matthieu Napoli ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
createProxyManager ( )

Описание методов

__construct() публичный Метод

public __construct ( $writeProxiesToFile, $proxyDirectory = null )

createProxy() публичный Метод

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
Результат ProxyManager\Proxy\LazyLoadingInterface