Take the existing Upgrader concept and convert it to a more general Generator concept.
Motivation
It can be used for generating new code or generating upgraded code.
It's confusing to use the same word ("Upgrader") to describe both (a) the thing inside civix that manipulates ext-code and (b) the thing inside an ext that manipulates DB schema.
Change
Before: Various calls to new Upgrader(...) and/or $this->getUpgrader()
Overview
Take the existing
Upgrader
concept and convert it to a more generalGenerator
concept.Motivation
It can be used for generating new code or generating upgraded code.
It's confusing to use the same word ("Upgrader") to describe both (a) the thing inside civix that manipulates ext-code and (b) the thing inside an ext that manipulates DB schema.
Change
new Upgrader(...)
and/or$this->getUpgrader()
Civix::generator()