BundleGenerator
class BundleGenerator
Properties
protected Configurator | $configurator | ||
callable | $serializer | ||
string | $unserializer |
Methods
string
generate(string $className, array $options = [])
Create and return the source of a bundle based on given Configurator instance
string
exportCallback(string $namespace, callable $callback, string $argument)
Export a given callback as PHP code
string
exportObject(object $obj)
Serialize and export a given object as PHP code
Details
at line 35
__construct(Configurator $configurator)
Constructor
at line 51
string
generate(string $className, array $options = [])
Create and return the source of a bundle based on given Configurator instance
Options:
- autoInclude: automatically load the source of the PHP renderer (default: true)
at line 206
protected string
exportCallback(string $namespace, callable $callback, string $argument)
Export a given callback as PHP code
at line 240
protected string
exportObject(object $obj)
Serialize and export a given object as PHP code