-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[API] Registering shop users #11356
[API] Registering shop users #11356
Conversation
# 'App\Message\YourMessage': async | ||
|
||
buses: | ||
messenger.bus.default: |
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.
WDYT about prefixing this bus with some sylius
keyword?
Also, WDYT about defining a default bus? This way, all of the plugins could use the same main bus.
Plus, this file should be part of Api/CoreBundle, so we can share this configuration with third party users.
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'm not sure if I should tackle this issue in this PR - what about creating an issue about that to keep track of it, not to grow this PR even bigger.
src/Sylius/Bundle/ApiBundle/spec/CommandHandler/RegisterShopUserHandlerSpec.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/spec/CommandHandler/RegisterShopUserHandlerSpec.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/CommandHandler/RegisterShopUserHandler.php
Outdated
Show resolved
Hide resolved
5b71d57
to
ee7fd51
Compare
ee7fd51
to
adcf83a
Compare
0a10cbf
to
7b11178
Compare
@@ -5,6 +5,7 @@ source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../bash/common.lib.s | |||
print_header "Customizing the environment" "Sylius" | |||
run_command "git fetch origin $TRAVIS_BRANCH:refs/remotes/origin/$TRAVIS_BRANCH" || exit $? # Make origin/master available for is_suitable steps | |||
run_command "phpenv config-rm xdebug.ini" # Disable XDebug | |||
run_command "echo \"memory_limit=4096M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB | |||
run_command "echo \"memory_limit=6144M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB |
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.
run_command "echo \"memory_limit=6144M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB | |
run_command "echo \"memory_limit=6144M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 6GB |
@@ -13,4 +13,4 @@ reset_cache() { | |||
|
|||
install_package="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/install-package" | |||
|
|||
locate_packages | parallel -j "$(get_number_of_jobs_for_parallel)" --gnu "${install_package} {} $* $(reset_cache)" | |||
locate_packages | parallel -j1 --gnu "${install_package} {} $* $(reset_cache)" |
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.
Why do we need this change?
use Sylius\Component\User\Canonicalizer\CanonicalizerInterface; | ||
use Symfony\Component\Messenger\Handler\MessageHandlerInterface; | ||
|
||
class RegisterShopUserHandler implements MessageHandlerInterface |
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 thought about opening RegisterShopUser
only. Imho, this class could be finalized
Thank you, Kamil! 🥇 |
…iding customer to a separate service (GSadee) This PR was merged into the 1.8-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes for review from #11356 | License | MIT Commits ------- 501c2ab Move messenger config to bundles e5f9696 Extract providing customer to separate service a6e2f53 [Travis] Fix comment
We need to customise the test API client to not force
admin
prefix in further PRs.