<?xml version="1.0"?>
<!--
/**
 * Bss Commerce Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://bsscommerce.com/Bss-Commerce-License.txt
 *
 * @category   Bss
 * @package    Bss_CatalogPermission
 * @author     Extension Team
 * @copyright  Copyright (c) 2018-2019 Bss Commerce Co. ( http://bsscommerce.com )
 * @license    http://bsscommerce.com/Bss-Commerce-License.txt
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Cms\Controller\Adminhtml\Page\PostDataProcessor">
        <plugin name="PostDataProcessor_Save" type="Bss\CatalogPermission\Plugin\PostDataProcessor" sortOrder="10"/>
    </type>
    <type name="Magento\Cms\Model\Page\DataProvider">
        <plugin name="DataProvider_Load" type="Bss\CatalogPermission\Plugin\Model\Page\DataProvider" sortOrder="10"/>
    </type>

    <type name="Magento\Catalog\Model\Category\DataProvider">
        <plugin name="category-data-provider-after-load"
                type="Bss\CatalogPermission\Plugin\Model\Category\DataProvider" sortOrder="10"/>
    </type>

    <type name="Magento\Config\Model\Config\Structure\Element\Field">
        <plugin name="catalog_permission_source_model_home_page"
                type="Bss\CatalogPermission\Plugin\Model\Config\Source\BssListCmsPage" sortOrder="10"/>
    </type>
</config>
