wireup icon indicating copy to clipboard operation
wireup copied to clipboard

Pass known singeltons/parameters when autowiring

Open maldoinc opened this issue 2 years ago • 1 comments

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.

maldoinc avatar Nov 19 '23 17:11 maldoinc

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

smokyabdulrahman avatar Mar 31 '25 10:03 smokyabdulrahman

Closing as no longer valid.

maldoinc avatar May 04 '25 16:05 maldoinc