https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-breakfast-49010

07/19/2019, 9:39 PM
does
Subsystem
work the same way in v1 vs v2?
w

witty-crayon-22786

07/19/2019, 9:45 PM
close, but not exactly the same. in v1 a singleton in stashed on the class itself.
in v2, you get an instance via a declared dependency, and the engine will make it a singleton via its own memoization
h

hundreds-breakfast-49010

07/19/2019, 10:16 PM
does a
Subsystem
subclass that's already being used in the v1 engine need to be changed so that v2 rules can use it?
w

witty-crayon-22786

07/19/2019, 10:26 PM
no, just needs an
optionable_rule
registered