Skip to content

Commit

Permalink
bug #321 [symfony/workflow] Makes workflow event listener loading (Pr…
Browse files Browse the repository at this point in the history
…ometee)

This PR was merged into the main branch.

Discussion
----------

The event listener for `symfony/workflow` can be loaded even if `winzou/state-machine` is still the default state machine.

Before this PR :

![image](https://github.com/user-attachments/assets/4a9fe8bc-e2cf-4887-a072-ae819c493ad9)


Commits
-------

655491b makes workflow event listener loading
6a618e1 Change priority to run it after Sylius Core ResolveOrderPaymentStateListener
  • Loading branch information
GSadee authored Oct 2, 2024
2 parents f9f7c4e + 6a618e1 commit 7753796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<imports>
<import resource="services/**.xml" />
<import resource="services/**/*.xml" />
</imports>

<parameters>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services/listeners/workflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class="Sylius\InvoicingPlugin\EventListener\Workflow\Payment\ProduceOrderPaymentPaidListener">
<argument type="service" id="sylius_invoicing_plugin.event_producer.order_payment_paid" />

<tag name="kernel.event_listener" event="workflow.sylius_payment.completed.complete" priority="100" />
<tag name="kernel.event_listener" event="workflow.sylius_payment.completed.complete" priority="50" />
</service>
</services>
</container>

0 comments on commit 7753796

Please sign in to comment.