hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.89k stars 165 forks source link

Increase visibility of RegistrationBuilder and InjectorCache to make VContainer more extensible. #564

Closed pnarimani closed 8 months ago

pnarimani commented 10 months ago

With members of RegistrationBuilder being internal, it's very difficult to create your own project-specific registrations.

I increased visiblity of members inside RegistrationBuilder to protected internal. This should allow classes that inherit from RegistrationBuilder to have access to those fields.

I also changed the visibility of InjectorCache to public. This is needed for the cases that a custom RegistrationBuilder needs to be made.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vcontainer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2023 7:30pm
hadashiA commented 8 months ago

I too have been having problems with extensibility lately. Thanks. I'll fix the namespace later.