Enter a type and click search.




Results for Magento\Catalog\EntityCreator\MetadataPool

File: vendor/magento/module-catalog/etc/di.xml

<virtualType name="Magento\Catalog\EntityCreator\MetadataPool"
             type="Magento\Framework\EntityManager\MetadataPool">
    <arguments>
        <argument name="metadata" xsi:type="array">
            <item name="Magento\Catalog\Api\Data\ProductInterface"
                  xsi:type="array">
                <item name="entityContext" xsi:type="array">
                    <item name="store" xsi:type="string">
                        Magento\Store\Model\DefaultStoreScopeProvider
                    </item>
                </item>
            </item>
            <item name="Magento\Catalog\Api\Data\CategoryInterface"
                  xsi:type="array">
                <item name="entityContext" xsi:type="array">
                    <item name="store" xsi:type="string">
                        Magento\Store\Model\DefaultStoreScopeProvider
                    </item>
                </item>
            </item>
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Catalog\EntityCreator\MetadataPool object that it should return a Magento\Framework\EntityManager\MetadataPool object.

This configuration tells the Object Manager that when a user wants a Magento\Catalog\EntityCreator\MetadataPool object that the following arguments should be used in the foo object's constructor.

  • $metadata = [...items...];

File: vendor/magento/module-catalog/etc/di.xml

<virtualType name="Magento\Catalog\Model\Entity\CreationScopeResolver"
             type="Magento\Framework\Model\Entity\ScopeResolver">
    <arguments>
        <argument name="metadataPool" xsi:type="object">
            Magento\Catalog\EntityCreator\MetadataPool
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Catalog\Model\Entity\CreationScopeResolver object that it should return a Magento\Framework\Model\Entity\ScopeResolver object.

This configuration tells the Object Manager that when a user wants a Magento\Catalog\Model\Entity\CreationScopeResolver object that the following arguments should be used in the foo object's constructor.

File: vendor/magento/module-catalog/etc/di.xml

<virtualType name="Magento\Catalog\Model\ResourceModel\CreateHandler"
             type="Magento\Eav\Model\ResourceModel\CreateHandler">
    <arguments>
        <argument name="metadataPool" xsi:type="object">
            Magento\Catalog\EntityCreator\MetadataPool
        </argument>
        <argument name="scopeResolver" xsi:type="object">
            Magento\Catalog\Model\Entity\CreationScopeResolver
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Catalog\Model\ResourceModel\CreateHandler object that it should return a Magento\Eav\Model\ResourceModel\CreateHandler object.

This configuration tells the Object Manager that when a user wants a Magento\Catalog\Model\ResourceModel\CreateHandler object that the following arguments should be used in the foo object's constructor.