skip to Main Content

Php – Call method with autowired parameter

I want to call service method dynamically with autowired parameters for now I do as followed : $result = call_user_func_array([$myService,"myMethod"],[$entityManager,$tranlator]); The problem is that sometimes the service method needs other parameters than $entityManager and $translator. I would like to call…

VIEW QUESTION
Back To Top
Search