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

[CatalogPromotion] Refactor to not listen on Doctrine events #13152

Merged

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Sep 29, 2021

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

@GSadee GSadee added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Sep 29, 2021
@GSadee GSadee requested a review from a team as a code owner September 29, 2021 09:53
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Sep 29, 2021
@GSadee GSadee force-pushed the remove-doctrine-listener-for-catalog-promotion branch from 4a5b2f9 to 360e1b5 Compare September 29, 2021 10:30
@@ -29,25 +28,11 @@ public function __construct(MessageBusInterface $eventBus)
$this->eventBus = $eventBus;
}

public function postPersist(LifecycleEventArgs $args): void
public function update(GenericEvent $event): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it can be used for both creation and update, maybe just __invoke()? Of dispatchCatalogPromotionUpdateEvent? 🤷

@Zales0123 Zales0123 merged commit 21d625f into Sylius:master Sep 29, 2021
@Zales0123
Copy link
Member

Thank you, Grzegorz! 🎉

@GSadee GSadee deleted the remove-doctrine-listener-for-catalog-promotion branch September 29, 2021 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants