Right now, the CompilerComponents construct their corresponding
runtime instance using code generation, with code generated in
generateConstructor.
Instead, it would be easier for tag authors if a dummy instance
was created, which the tag author could modify, and which would
then be serialized by the compiler.
This allows for additional future possibilities, is easier to test, is
simpler for the tag author, and easier to understand.
An example of how this is done currently:
function generateConstructor(&$code) {
parent::generateConstructor($code);
$code->writePHP($this->getComponentRefCode() .
'->IsDynamicallyRendered = TRUE;');
}
and with instances instead:
function configureComponent(&$component) {
$component->IsDynamicallyRendered = TRUE;
}