Skip to content

How to use DTO class outside of route method? #3898

Closed Answered by provinzkraut
pavdwest asked this question in Q&A
Discussion options

You must be logged in to vote

This requirement doesn't make sense to me having worked with DTO patterns in multiple other frameworks.

Maybe not, but it is how they are currently working. So to answer your question: You can't.

There are plans to make the DTOs available standalone, but it will be a while before we get to that.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pavdwest
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants