Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/app/code/SR/Theme/etc/
Upload File :
Current File : /home/dev2.destoffenstraat.com/app/code/SR/Theme/etc/di.xml

<?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="SR\Theme\Api\ThemeRepositoryInterface" type="SR\Theme\Model\ThemeRepository"/>
	<preference for="SR\Theme\Api\Data\ThemeInterface" type="SR\Theme\Model\Data\Theme"/>
	<preference for="SR\Theme\Api\Data\ThemeSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
	<virtualType name="SR\Theme\Model\ResourceModel\Theme\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">sr_theme_theme</argument>
			<argument name="resourceModel" xsi:type="string">SR\Theme\Model\ResourceModel\Theme\Collection</argument>
		</arguments>
	</virtualType>
	<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
		<arguments>
			<argument name="collections" xsi:type="array">
				<item name="sr_theme_theme_listing_data_source" xsi:type="string">SR\Theme\Model\ResourceModel\Theme\Grid\Collection</item>
			</argument>
		</arguments>
	</type>
</config>