We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Thanks for this command bus. I'm Trying to use the following syntax:
Yii::$app->commandBus->locator->addHandler('app\handlers\SomeHandler', 'app\commands\SomeCommand');
And I've got that error:
Error: Argument 1 passed to trntv\bus\locators\ClassNameLocator::addHandler() must be an instance of trntv\bus\interfaces\Handler, string given
It seems to be due by the type define in function declaration in ClassNameLocator.php#L43
ClassNameLocator.php#L43
public function addHandler(Handler $handler, $className)
Should remove the Handler type or remove the line in documentation. Or am I mistaken on the way to use the syntax ?
Handler
Regards,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
Thanks for this command bus. I'm Trying to use the following syntax:
And I've got that error:
It seems to be due by the type define in function declaration in
ClassNameLocator.php#L43
Should remove the
Handler
type or remove the line in documentation. Or am I mistaken on the way to use the syntax ?Regards,
The text was updated successfully, but these errors were encountered: