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
This is because now parameters that are classes (<class masonite.auth.Auth> type objects) are now resolved out of the container as they are resolved. Meaning we can resolve the auth constructor as it is resolved from the parameter list. This allows us to automatically resolve the auth initializer which will pass in the request class before we get the object for us.
The text was updated successfully, but these errors were encountered:
josephmancuso
added
beta-3
Labels the issue with which beta version this issue applies to
and removed
beta-3
Labels the issue with which beta version this issue applies to
labels
May 17, 2019
There is a new way that classes are being resolved in 2.2 (currently in the develop branch).
now instead of doing this:
we can now do this:
This is because now parameters that are classes (
<class masonite.auth.Auth>
type objects) are now resolved out of the container as they are resolved. Meaning we can resolve the auth constructor as it is resolved from the parameter list. This allows us to automatically resolve the auth initializer which will pass in the request class before we get the object for us.The text was updated successfully, but these errors were encountered: