wireup
wireup copied to clipboard
Pass known singeltons/parameters when autowiring
The @container.autowire decorator will simply return a new function that will bind container objects to the function on call. Since this will happen on every call, even though cached it still has a small performance penalty.
On registration, if the container has been warmed up we should bind any known singleton services and parameters as the container is considered final.
Is this still valid? I can see that this decorator has been deleted here: https://github.com/maldoinc/wireup/blob/1a4942038ca449f9c936bc74b9a1d27a1032f1af/docs/pages/upgrading.md?plain=1#L17
Closing as no longer valid.