<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Shipping\Model\Shipping\Labels" type="CTSG\Shipment\Preference\Magento\Shipping\Model\Shipping\Labels" />
    <preference for="Magento\Dhl\Model\Carrier" type="CTSG\Shipment\Preference\Magento\Dhl\Model\Carrier" />
    <preference for="Magento\Ups\Model\Carrier" type="CTSG\Shipment\Preference\Magento\Ups\Model\Carrier" />

    <type name="Magento\Checkout\Controller\Index\Index">
        <plugin name="restrictCheckout" type="CTSG\Shipment\Plugin\Checkout\Controller\Restrict"/>
    </type>
    <type name="Magento\Checkout\Controller\Cart\Index">
        <plugin name="restrictCart" type="CTSG\Shipment\Plugin\Cart\Controller\Restrict"/>
    </type>
</config>
