You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When registering a dependency with an initializer block, Sinject::Container#register requires the class to be provided as a parameter and, essentially, to be provided in the block. This introduces a bit of tedious boilerplate, like this:
Nine times out of ten, the type you want to instantiate in the block is the exact same type you specified as the class argument. It would be a nice convenience if that class could be passed to the block:
When registering a dependency with an initializer block,
Sinject::Container#register
requires theclass
to be provided as a parameter and, essentially, to be provided in the block. This introduces a bit of tedious boilerplate, like this:Nine times out of ten, the type you want to instantiate in the block is the exact same type you specified as the
class
argument. It would be a nice convenience if that class could be passed to the block:The text was updated successfully, but these errors were encountered: