Order processor is injected twice in 1.4


#1

After upgrading from 1.3 to 1.4 my order processor is injected twice:

services:

    _defaults:
        public: true

    app.processor.order_customer:
        class: App\Processor\OrderCustomerProcessor
        arguments:
            - '@sylius.context.customer'
        tags:
            -
                name: sylius.order_processor
                priority: 100

This is generated:

<?php

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'sylius.order_processing.order_processor' shared service.

include_once $this->targetDirs[3].'/vendor/sylius/sylius/src/Sylius/Component/Order/Processor/OrderProcessorInterface.php';
include_once $this->targetDirs[3].'/vendor/sylius/sylius/src/Sylius/Component/Order/Processor/CompositeOrderProcessor.php';
include_once $this->targetDirs[3].'/src/Processor/OrderCustomerProcessor.php';

$this->services['sylius.order_processing.order_processor'] = $instance = new \Sylius\Component\Order\Processor\CompositeOrderProcessor();

$instance->addProcessor(($this->privates['app.processor.order_customer'] ?? $this->load('getApp_Processor_OrderCustomerService.php')), 100);
$instance->addProcessor(($this->services['App\Processor\OrderCustomerProcessor'] ?? ($this->services['App\Processor\OrderCustomerProcessor'] = new \App\Processor\OrderCustomerProcessor())), 0);
[...]

return $instance;

So obviously the processor is injected twice and once without the customer context. But I have currently no idea what causes that.


#2

The reason for this was:

App\:
    resource: '../src/*'