Open mopkob1 opened 10 years ago
@Inject
is about configuring the service in the DI container (like everything else in DIExtraBundle).
$sar=new sugarAjaxRequest($request);
has no way to be instrumented by JMSDIExtraBundle.
Dear Stof,
Thank you for you comment. Could you please explain me what i have to do with my class to use annotation with JMSDIExtraBundle.
Here is a Service:
Here is Injection in SymfonyController:
and echo work fine. Browser shows print_r(of_service_obj) But the same rows in non-controller class (bellow),show me error...
Here is error:
I think that the same situation like here: http://stackoverflow.com/questions/18533881/jmsdiextrabundle-inject-does-not-work-in-custom-classes-but-works-in-the-contr/18534037#18534037
Please, investigate this bug and let me know about this.
Thank you.