<?xml version="1.0" ?>
<!--
/**
* KiwiCommerce
*
* Do not edit or add to this file if you wish to upgrade to newer versions in the future.
* If you wish to customise this module for your needs.
* Please contact us https://kiwicommerce.co.uk/contacts.
*
* @category   KiwiCommerce
* @package    KiwiCommerce_CustomerPassword
* @copyright  Copyright (C) 2018 Kiwi Commerce Ltd (https://kiwicommerce.co.uk/)
* @license    https://kiwicommerce.co.uk/magento2-extension-license/
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
	<type name="Magento\Framework\Console\CommandList">
		<arguments>
			<argument name="commands" xsi:type="array">
				<item name="changeCustomerPassword" xsi:type="object">KiwiCommerce\CustomerPassword\Console\Command\ChangeCustomerPassword</item>
			</argument>
		</arguments>
	</type>
	<preference for="KiwiCommerce\CustomerPassword\Api\PasswordLogRepositoryInterface" type="KiwiCommerce\CustomerPassword\Model\PasswordLogRepository"/>
	<virtualType name="KiwiCommerce\CustomerPassword\Model\ResourceModel\PasswordLog\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">kiwicommerce_customer_password_log</argument>
			<argument name="resourceModel" xsi:type="string">KiwiCommerce\CustomerPassword\Model\ResourceModel\PasswordLog\Collection</argument>
		</arguments>
	</virtualType>
	<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
		<arguments>
			<argument name="collections" xsi:type="array">
				<item name="kiwicommerce_customerpassword_passwordlog_grid_data_source" xsi:type="string">KiwiCommerce\CustomerPassword\Model\ResourceModel\PasswordLog\Grid\Collection</item>
			</argument>
		</arguments>
	</type>
</config>
