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
Right now contextual binding resolution only works at the constructor level but it should also work with method injection. So, for example, if we have:
then PostsController::__construct(PostRepositoryInterface $posts) will resolve the dependency correctly but PostsController::store(PostRepositoryInterface $posts) will only look for a non-contextual binding and will fail to resolve.