Do I need to call a third-party class constructor "based on DI method"?


(Poongudivanan N) #1

I try use the \Apiclass in __construct based on DI method.

Can’t use the this class in __construct ?


How to pass a parameter into a PHP class constructor?
(Dmitry Fedyuk) #2

Why do you need to call a third-party class constructor “based on DI method”?