Closed arctouch-eltonsantana closed 5 years ago
Nevermind! I just noticed that I need to register it with .addArgument(new Reference('service.messenger'))
.
I got confused because of the example on the readme page, I think you should consider change that example to avoid this kind of mistake.
I have something similar to the below, and my
sayHi
method fails with the errorsayHi is not a function
And here is the container configuration:
I was expecting a
Messeger
object instance in theApplication
constructor. Am I wrong about this assumption? I already tried to use the Class instead of the Interface in the constructor but it fails with the same message.