<?xml version="1.0" encoding="UTF-8"?>

<!--

 This file is part of the Sylius package.

 (c) Paweł Jędrzejewski

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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"
>
    <services>
        <service id="Sylius\Bundle\ApiBundle\EventHandler\OrderCompletedHandler">
            <argument type="service" id="message_bus" />
            <argument type="service" id="sylius.repository.order" />
            <tag name="messenger.message_handler" bus="sylius_event.bus"/>
        </service>
    </services>
</container>

<?xml version="1.0" encoding="UTF-8"?>

<!--

 This file is part of the Sylius package.

 (c) Paweł Jędrzejewski

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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"
>
    <services>
        <service id="Sylius\Bundle\ApiBundle\EventHandler\OrderCompletedHandler">
            <argument type="service" id="messenger.default_bus" />
            <argument type="service" id="sylius.repository.order" />
            <tag name="messenger.message_handler" bus="sylius_event.bus"/>
        </service>
    </services>
</container>

Rename "message_bus" service to "messenger.default_bus" to comply with Symfony 5.2
Rename "message_bus" service to "messenger.default_bus" to comply with Symfony 5.2
