Repository navigation
Add constructorCallback to generated micro package init - #551
AzazelSensei wants to merge 1 commit into
Conversation
|
This syntax error only arises when The docs for this argument read:
Was this causing an issue for you that you're hoping to alleviate? My advice would be to take a crack at fixing this in the proper fashion. Is that something you thinking you can work through? The code builders can be a bit intimidating at first – let me know if you get stuck or want to try for an actual fix but are unsure how to proceed. |
MicroPackageModule.init only takes GetItHelper. With usesConstructorCallback the generated body still referenced constructorCallback. Add the same optional named parameter on the generated override and wrap instances with it. Fixes Milad-Akarie#492
e6f5b76 to
c028ad4
Compare
|
You are right, skipping it just turned the flag off. Generated micro init now takes constructorCallback the same way $initGetIt does, and wraps the registrations with it. |
|
Nice work. Thanks for picking that up and taking it to the finish line. |
MicroPackageModule.init only takes GetItHelper. With usesConstructorCallback the generator still wrote constructorCallback, which does not compile.
Generated micro init now takes the same optional named parameter as $initGetIt and wraps registrations with it.
Fixes #492