Describe the bug
If someone uses mezzio + PHP-DI, they will receive an error MessageBusFactory::messenger.command.bus() is not a callable. A __call() or __callStatic() method exists but magic methods are not supported.
PHP-DI uses PHP-DI/Invoker.
To Reproduce
Steps to reproduce the behavior:
- Create project of Mezzio with PHP-DI container
- Add current library into the project
- Try to dispatch a command
- See error
Version of the xtreamwayz/psr-container-messenger library
2.5.0
Expected behavior
Command successfully dispatched.
How to fix it for yourself
Use custom configuration entries for the factories or custom ConfigProvider
Describe the bug
If someone uses mezzio + PHP-DI, they will receive an error
MessageBusFactory::messenger.command.bus() is not a callable. A __call() or __callStatic() method exists but magic methods are not supported.PHP-DI uses PHP-DI/Invoker.
To Reproduce
Steps to reproduce the behavior:
Version of the
xtreamwayz/psr-container-messengerlibrary2.5.0
Expected behavior
Command successfully dispatched.
How to fix it for yourself
Use custom configuration entries for the factories or custom ConfigProvider