When beans and DAOs PHP files are generated by TDBM a number of events are triggered. You can hook on these events to add some specific code.
A few possible use cases:
MoufDiListenerclass does precisely that)
There are 2 interfaces you can implement to react on code generation.
GeneratorListenerInterfaceif you want to get a list of all beans/DAOs generated. This is useful if you want to auto-generate a container for instance
CodeGeneratorListenerInterfaceif you want to alter generated code. For instance, the thecodingmachine/tdbm-graphql package uses this listener to add annotations directly in the beans.
CodeGeneratorListenerInterface must be referenced in the
Found a typo? Something is wrong in this documentation? Just fork and edit it!