|
| | __construct (private ?string $proxyDirectory=null,) |
| |
| | createProxy (string $className, Closure $initializer) |
| | Creates a new lazy proxy instance of the given class with the given initializer.
|
| |
| | generateProxyClass (string $className) |
| | Generates and writes the proxy class to file.
|
| |
◆ __construct()
| DI\Proxy\ProxyFactory::__construct |
( |
private ?string | $proxyDirectory = null | ) |
|
- Parameters
-
| string | null | $proxyDirectory | If set, write the proxies to disk in this directory to improve performances. |
◆ createProxy()
| DI\Proxy\ProxyFactory::createProxy |
( |
string | $className, |
|
|
Closure | $initializer ) |
Creates a new lazy proxy instance of the given class with the given initializer.
- Parameters
-
| class-string | $className | name of the class to be proxied |
| Closure | $initializer | initializer to be passed to the proxy |
◆ generateProxyClass()
| DI\Proxy\ProxyFactory::generateProxyClass |
( |
string | $className | ) |
|
Generates and writes the proxy class to file.
- Parameters
-
| class-string | $className | name of the class to be proxied |
The documentation for this class was generated from the following file:
- lib/php-di/php-di/src/Proxy/ProxyFactory.php