Skip to content

Pass parameters to constructor #1517

Closed Answered by PodaruDragos
Peterculazh asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, this is really not recommended practice, however you can use 2 approaches.

  1. create another injectable service that you want to use in save where you can get an validate data.
  2. create a factory to get what you want from the container link

Hope this helps.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@capsulated
Comment options

@notaphplover
Comment options

@capsulated
Comment options

Answer selected by Peterculazh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants