SmcShipcloudLive/SmcShipcloudLive/src/Resources/config/services.xml

43 lines
1.9 KiB
XML

<?xml version="1.0" ?>
<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="SmcShipcloudLive\Core\Checkout\Cart\Delivery\SmcDeliveryCalculator" decorates="Shopware\Core\Checkout\Cart\Delivery\DeliveryCalculator"> -->
<!-- <argument type="service" id ="Shopware\Core\Checkout\Cart\Delivery\DeliveryCalculator.inner" /> -->
<!--
</service>
-->
<!-- brute-force replacement, no decoration -->
<!--
<service id="Shopware\Core\Checkout\Cart\Delivery\DeliveryCalculator" class="SmcShipcloudLive\Core\Checkout\Cart\Delivery\SmcDeliveryCalculator">
<argument type="service" id="Shopware\Core\Checkout\Cart\Price\QuantityPriceCalculator"/>
<argument type="service" id="Shopware\Core\Checkout\Cart\Tax\PercentageTaxRuleBuilder"/>
</service>
-->
<!-- processor in addition to the existing one -->
<!--
<service id="SmcShipcloudLive\Core\Checkout\Cart\Delivery\SmcDeliveryProcessor">
<tag name="shopware.cart.processor" priority="-5001"/>
<tag name="shopware.cart.collector" priority="-5001"/>
</service>
-->
<!-- brute-force replacement of existing processor, no decoration -->
<service id="Shopware\Core\Checkout\Cart\Delivery\DeliveryProcessor" class="SmcShipcloudLive\Core\Checkout\Cart\Delivery\SmcDeliveryProcessor">
<argument type="service" id="Shopware\Core\Checkout\Cart\Delivery\DeliveryBuilder"/>
<argument type="service" id="Shopware\Core\Checkout\Cart\Delivery\DeliveryCalculator"/>
<argument type="service" id="shipping_method.repository"/>
<tag name="shopware.cart.processor" priority="-5000"/>
<tag name="shopware.cart.collector" priority="-5000"/>
</service>
</services>
</container>