<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Magento/Store/etc/config.xsd">

    <!-- Photo book layout -->
    <preference
        for="Brushyourideas\Photoalbum\Api\BookLayoutsRepositoryInterface"
        type="Brushyourideas\Photoalbum\Model\BookLayouts\BookLayoutsRepository"/>
    <preference
        for="Brushyourideas\Photoalbum\Api\Data\BookLayoutsInterface"
        type="Brushyourideas\Photoalbum\Model\BookLayouts\BookLayouts"/>

    <!-- Spine width -->
    <preference
        for="Brushyourideas\Photoalbum\Api\SpineWidthRepositoryInterface"
        type="Brushyourideas\Photoalbum\Model\SpineWidth\SpineWidthRepository"/>

    <preference
        for="Brushyourideas\Photoalbum\Api\Data\SpineWidthInterface"
        type="Brushyourideas\Photoalbum\Model\SpineWidth\SpineWidth"/>

    <preference for="Brushyourideas\Productdesigner\Observer\CustomSize" type="Brushyourideas\Photoalbum\Observer\CustomSize"/>

    <preference for="Brushyourideas\Photoalbum\Api\LayoutsAndDesignIdeasApiInterface" type="Brushyourideas\Photoalbum\Model\LayoutsAndDesignIdeasApi"/>

    <!-- Data provider override in case Photo albums -->
	 <type name="Printxpand\Core\Model\ProductConfiguration\DataProvider">
        <plugin name="productconfiguration_dataprovider_photoalbum" type="Brushyourideas\Photoalbum\Plugin\DataProviderPlugin" />
    </type>
</config>
