init
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?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\Customer\Api\CustomerRepositoryInterface" type="Stemcell\Customer\Model\ResourceModel\CustomerRepository" />
|
||||
<preference for="Stemcell\Customer\Api\Data\Http\JsonResponse" type="Stemcell\Customer\Model\Data\JsonResponse" />
|
||||
<preference for="Magento\Customer\Api\AccountManagementInterface"
|
||||
type="Stemcell\Customer\Model\AccountManagement" />
|
||||
|
||||
<preference for="Magento\Customer\Model\Address\Validator\General"
|
||||
type="Stemcell\Customer\Model\Address\Validator\General" />
|
||||
<preference for="Magento\Customer\Model\Address\Validator\Country"
|
||||
type="Stemcell\Customer\Model\Address\Validator\Country" />
|
||||
|
||||
<preference for="Magento\Customer\Model\Address" type="Stemcell\Customer\Model\Address" />
|
||||
|
||||
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
|
||||
<arguments>
|
||||
<argument name="collections" xsi:type="array">
|
||||
<item name="salesperson_grid_data_source" xsi:type="string">salesperson_grid</item>
|
||||
<item name="lab_grid_data_source" xsi:type="string">lab_grid_data_source</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<virtualType name="salesperson_grid" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">salesperson</argument>
|
||||
<argument name="identifierName" xsi:type="string">salesperson_id</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Stemcell\Customer\Model\ResourceModel\Salesperson</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<virtualType name="lab_grid_data_source" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">lab</argument>
|
||||
<argument name="identifierName" xsi:type="string">lab_id</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Stemcell\Customer\Model\ResourceModel\Lab</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<preference for="Stemcell\Customer\Api\Data\SalespersonInterface" type="Stemcell\Customer\Model\Salesperson" />
|
||||
<preference for="Magento\Customer\Model\Validator\Name" type="Stemcell\Customer\Model\Validator\Name" />
|
||||
<preference for="Stemcell\Customer\Api\Data\LabInterface" type="Stemcell\Customer\Model\Lab" />
|
||||
<preference for="Stemcell\Customer\Api\SalespersonRepositoryInterface" type="Stemcell\Customer\Model\SalespersonRepository" />
|
||||
<preference for="Stemcell\Customer\Api\LabRepositoryInterface" type="Stemcell\Customer\Model\LabRepository" />
|
||||
<preference for="Magento\Customer\Model\Customer\DataProviderWithDefaultAddresses" type="Stemcell\Customer\Ui\Component\DataProvider\DataProviderWithDefaultAddresses" />
|
||||
|
||||
<type name="Magento\ImportExport\Model\Import\SampleFileProvider">
|
||||
<arguments>
|
||||
<argument name="samples" xsi:type="array">
|
||||
<item name="lab" xsi:type="string">Stemcell_Customer</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<preference for="Stemcell\Customer\Api\AvatrRepositoryInterface" type="Stemcell\Customer\Model\AvatrRepository"/>
|
||||
<preference for="Stemcell\Customer\Api\Data\AvatrInterface" type="Stemcell\Customer\Model\Avatr"/>
|
||||
<preference for="Stemcell\Customer\Api\Data\AvatrSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
|
||||
|
||||
<preference for="Magento\Customer\Block\CustomerData" type="Stemcell\Customer\Block\CustomerData" />
|
||||
|
||||
</config>
|
||||
Reference in New Issue
Block a user