Enter a type and click search.




Results for Klarna\Core\Config\SchemaLocator\Virtual

File: vendor/klarna/module-core/etc/di.xml

<virtualType name="Klarna\Core\Config\Reader\Virtual"
             type="Magento\Framework\Config\Reader\Filesystem">
    <arguments>
        <argument name="converter" xsi:type="object">
            Klarna\Core\Config\Converter\Dom
        </argument>
        <argument name="schemaLocator" xsi:type="object">
            Klarna\Core\Config\SchemaLocator\Virtual
        </argument>
        <argument name="fileName" xsi:type="string">
            klarna.xml
        </argument>
        <argument name="idAttributes" xsi:type="array">
            <item name="/klarna/external_payment_method"
                  xsi:type="string">
                id
            </item>
            <item name="/klarna/api_type" xsi:type="string">
                id
            </item>
            <item name="/klarna/api_type/options/option"
                  xsi:type="string">
                id
            </item>
            <item name="/klarna/api_version" xsi:type="string">
                id
            </item>
            <item name="/klarna/api_version/options/option"
                  xsi:type="string">
                id
            </item>
            <item name="/klarna/merchant_checkbox" xsi:type="string">
                id
            </item>
            <item name="/klarna/order_lines" xsi:type="string">
                id
            </item>
            <item name="/klarna/order_lines/line" xsi:type="string">
                id
            </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 Klarna\Core\Config\Reader\Virtual object that it should return a Magento\Framework\Config\Reader\Filesystem object.

This configuration tells the Object Manager that when a user wants a Klarna\Core\Config\Reader\Virtual object that the following arguments should be used in the foo object's constructor.

File: vendor/klarna/module-core/etc/di.xml

<virtualType name="Klarna\Core\Config\SchemaLocator\Virtual"
             type="Magento\Framework\Config\GenericSchemaLocator">
    <arguments>
        <argument name="moduleName" xsi:type="string">
            Klarna_Core
        </argument>
        <argument name="schema" xsi:type="string">
            klarna.xsd
        </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 Klarna\Core\Config\SchemaLocator\Virtual object that it should return a Magento\Framework\Config\GenericSchemaLocator object.

This configuration tells the Object Manager that when a user wants a Klarna\Core\Config\SchemaLocator\Virtual object that the following arguments should be used in the foo object's constructor.

  • $moduleName = "Klarna_Core";
  • $schema = "klarna.xsd";