Skip to content

Nullable injections

Choose a tag to compare

@g105b g105b released this 09 Nov 11:43
· 60 commits to master since this release
8d0faf7

This minor patch release allows nullable types to be requested by the Injector class. This means that if your function parameter has a type such as ?App\User, it will still try to inject the App\User class. This is super useful for WebEngine applications, allowing go functions to simply have a nullable User parameter to indicate whether on not the user is authenticated.