-
Notifications
You must be signed in to change notification settings - Fork 26
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
Bump service bus package #10
Conversation
8a0a7bb
to
34a0441
Compare
travis is red. travis.yml needs update like https://github.com/prooph/event-store/blob/develop/.travis.yml#L6 |
some updates in the package are required, too. New set up is: So we need something like we already use in the event-store-symfony-bundle: Unfortunately, a lot of changes required for the service-bus-bundle :( |
@codeliner Thanks for your valuable feedback. I will continue with this PR tonight and then look into Also it should be a new v2.0.0 instead of a v0.3 version with prooph v7 I guess? This PR was not meant to be merged yet, I forgot to add the |
v0.3 is correct |
How about tagging the current version as v0.3 and the prooph-v7 one as v0.4? |
We can do that.
Am 04.01.2017 7:49 nachm. schrieb "Oskar Pfeifer-Bley" <
notifications@github.com>:
… How about tagging the current version as v0.3 and the prooph-v7 one as
v0.4?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYEvG3rAoUN-Z_g0O6TgQHVI6jDMy4Kks5rO4dSgaJpZM4LaCAJ>
.
|
Thx :-) |
88fa39f
to
89454cb
Compare
- Introduce MessageBusFactory to control the reversed way of plugin attaching - Add onEvent and handle method to Fixture Model handlers and listeners - Test for factory - Use factory in abstract service definitions
@codeline @prolic I have updated and rebased everything. This PR depends on prooph/service-bus#151 |
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.
Some small notes …
.travis.yml
Outdated
|
||
before_install: | ||
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
- composer self-update | ||
- composer update --prefer-dist $DEPENDENCIES |
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.
Replacement of self-update
with update
intended?
.travis.yml
Outdated
|
||
before_install: | ||
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
- composer self-update | ||
- composer update --prefer-dist $DEPENDENCIES | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --no-update satooshi/php-coveralls:dev-master ; fi | ||
|
||
install: | ||
- travis_retry composer install --no-interaction --prefer-source |
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.
Does this have any effect after composer update
in before_install
?
@@ -35,6 +36,7 @@ | |||
'query' => QueryBus::class, | |||
]; | |||
|
|||
|
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.
Two empty lines intended?
@@ -118,51 +120,65 @@ private function busLoad( | |||
*/ | |||
private function loadBus(string $type, string $name, array $options, ContainerBuilder $container) | |||
{ | |||
$serviceBusName = sprintf('prooph_service_bus.%s', $name); |
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.
String concatenation is used 8 times while sprintf
is used three times. Perhaps we can unify this to string concatenation?
@@ -118,51 +120,65 @@ private function busLoad( | |||
*/ | |||
private function loadBus(string $type, string $name, array $options, ContainerBuilder $container) | |||
{ | |||
$serviceBusName = sprintf('prooph_service_bus.%s', $name); |
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.
$serviceBusId
would be more consistent.
$containerPluginId = 'prooph_service_bus.container_plugin'; | ||
$pluginIds = array_filter(array_merge($options['plugins'], [$containerPluginId, $messageFactoryPluginId, $routerId])); | ||
|
||
|
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.
Two empty lines intended?
src/Resources/config/command_bus.xml
Outdated
<service id="prooph_service_bus.command_bus" class="%prooph_service_bus.command_bus.class%" abstract="true" > | ||
<factory service="prooph_service_bus.command_bus_factory" method="create"/> | ||
</service> | ||
<service id="prooph_service_bus.command_bus_factory" class="%prooph_service_bus.message_bus_factory.class%"/> |
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.
Not sure but factory might be set to public=false
src/Resources/config/event_bus.xml
Outdated
<service id="prooph_service_bus.event_bus" class="%prooph_service_bus.event_bus.class%" abstract="true" > | ||
<factory service="prooph_service_bus.event_bus_factory" method="create"/> | ||
</service> | ||
<service id="prooph_service_bus.event_bus_factory" class="%prooph_service_bus.message_bus_factory.class%"/> |
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.
See comment above.
src/Resources/config/query_bus.xml
Outdated
<service id="prooph_service_bus.query_bus" class="%prooph_service_bus.query_bus.class%" abstract="true" > | ||
<factory service="prooph_service_bus.query_bus_factory" method="create"/> | ||
</service> | ||
<service id="prooph_service_bus.query_bus_factory" class="%prooph_service_bus.message_bus_factory.class%"/> |
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.
See comment above.
composer.json
Outdated
@@ -71,7 +73,7 @@ | |||
"extra": { | |||
"branch-alias": { | |||
"dev-master": "1.0-dev", | |||
"dev-develop": "1.1-dev" | |||
"dev-prooph_v7": "0.3-dev" |
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.
As v0.3 has been released this should be 0.4-dev
(or completely removed after finishing?)
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 was a bit in struggle with these dependecies setup. Maybe the alias should be removed, true.
@UFOMelkor Thank you for the review, I will adjust the stuff. |
composer.json
Outdated
"container-interop/container-interop": "^1.1" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.3", | ||
"phpunit/php-invoker": "^1.1.4", | ||
"fabpot/php-cs-fixer": "^1.11", | ||
"bookdown/bookdown": "1.x-dev as 1.0.0", | ||
"tobiju/bookdown-bootswatch-templates": "1.0.x-dev" | ||
"tobiju/bookdown-bootswatch-templates": "^1.0", |
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.
prooph now has custom templates!
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.
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.
Thanks, will apply that.
Ping @UFOMelkor , @codeliner , @prolic - Sorry I totally forgot about this branch. I just did some updates. Travis passes now and the wrong branch alias also was removed. |
thx @mablae |
WIP