Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
1.5 KiB
1.5 KiB
title
| title |
|---|
| Generator strategies |
Generator strategies
ProxyManager allows you to generate classes based on generator strategies and a
given Zend\Code\Generator\ClassGenerator as of
the interface of a generator strategy.
Currently, 3 generator strategies are shipped with ProxyManager:
ProxyManager\GeneratorStrategy\BaseGeneratorStrategy, which simply retrieves the string representation of the class fromClassGeneratorProxyManager\GeneratorStrategy\EvaluatingGeneratorStrategy, which callseval()upon the generated class code before returning it. This is useful in cases where you want to generate multiple classes at runtimeProxyManager\GeneratorStrategy\FileWriterGeneratorStrategy, which accepts aProxyManager\FileLocator\FileLocatorInterfaceinstance as constructor parameter, and based on it, writes the generated class to a file before returning its code.