Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommanHandler is a FQCN #180

Closed
iaejean opened this issue Jan 3, 2018 · 2 comments
Closed

CommanHandler is a FQCN #180

iaejean opened this issue Jan 3, 2018 · 2 comments

Comments

@iaejean
Copy link

iaejean commented Jan 3, 2018

I'm having problems with a CommandHandler due in invokeStrategy or HandleCommandStrategy the $handler is a full qualified class name and not an object, then $handler is not callable or I can't call a member function handle() on string, Im using SF4 and php 7.2

@prolic
Copy link
Member

prolic commented Jan 3, 2018 via email

@iaejean
Copy link
Author

iaejean commented Jan 3, 2018

Thanks, I found my problem with the bundle settings, I should add my handlers as publics

    App\Domain\Command\:
        resource: '../src/Domain/Command/*Handler.php'
        public: true
        tags:
            - { name: 'prooph_service_bus.app_domain_command_bus.route_target', message_detection: true }

@iaejean iaejean closed this as completed Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants