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
Fix wrong setup for Symfony 3.3 #46
Conversation
Thanks for the fix, I'm not comfortable with the DI test helpers. |
Thanks for your PR, I switched my handlers to private, it made my day \o/ |
@@ -36,7 +35,7 @@ public function testHandleCommandWithInvalidMiddleware() | |||
commandbus: | |||
default: | |||
middleware: | |||
- tactician.middleware.validator | |||
- tactician.middleware.whatever |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to not be redundant with the test in ValidatorTest
$this->registerHandlerServiceLocator($container, $locatorServiceId, $handlerMapping); | ||
$locatorDefinition = $this->buildLocatorDefinition($handlerMapping, 'tactician.commandbus.'.$busId.'.handler.service_locator', ContainerLocator::class); | ||
$this->registerHandlerServiceLocator($container, 'tactician.commandbus.'.$busId.'.handler.service_locator', $handlerMapping); | ||
$locatorDefinition = $this->buildLocatorDefinition($handlerMapping, ContainerLocator::class, 'tactician.commandbus.'.$busId.'.handler.service_locator'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the new serviceId variable deserves a variable to make reading easier
4f588b9
to
a675dd0
Compare
Also fix the #45
Sorry for the CS fix, I was too hurry to move them in a dedicated commit.