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

Fix wrong setup for Symfony 3.3 #46

Merged
merged 2 commits into from Jun 1, 2017

Conversation

tyx
Copy link
Contributor

@tyx tyx commented May 30, 2017

Also fix the #45

Sorry for the CS fix, I was too hurry to move them in a dedicated commit.

@chalasr
Copy link
Member

chalasr commented May 30, 2017

Thanks for the fix, I'm not comfortable with the DI test helpers.
Looks good to me 👍

@tyx
Copy link
Contributor Author

tyx commented May 30, 2017

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
Copy link
Contributor Author

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');
Copy link
Contributor Author

@tyx tyx May 30, 2017

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

@tyx tyx force-pushed the fix/wrong-arguments-order branch from 4f588b9 to a675dd0 Compare May 30, 2017 13:36
@rosstuck rosstuck merged commit a4a4343 into thephpleague:master Jun 1, 2017
@tyx tyx deleted the fix/wrong-arguments-order branch June 1, 2017 08:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants