Enter a type and click search.




Results for KPValueHandlerPool

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

<virtualType name="KPVirtual"
             type="Magento\Payment\Model\Method\Adapter">
    <arguments>
        <argument name="code" xsi:type="const">
            Klarna\Kp\Model\Payment\Kp::METHOD_CODE
        </argument>
        <argument name="valueHandlerPool" xsi:type="object">
            KPValueHandlerPool
        </argument>
        <argument name="commandPool" xsi:type="object">
            KPCommandPool
        </argument>
        <argument name="validatorPool" xsi:type="object">
            KPValidatorPool
        </argument>
        <argument name="formBlockType" xsi:type="string">
            Magento\Payment\Block\Form
        </argument>
        <argument name="infoBlockType" xsi:type="string">
            Klarna\Core\Block\Info\Klarna
        </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 KPVirtual object that it should return a Magento\Payment\Model\Method\Adapter object.

This configuration tells the Object Manager that when a user wants a KPVirtual object that the following arguments should be used in the foo object's constructor.

  • $code = Klarna\Kp\Model\Payment\Kp::METHOD_CODE;
  • $valueHandlerPool = new KPValueHandlerPool (...)
  • $commandPool = new KPCommandPool (...)
  • $validatorPool = new KPValidatorPool (...)
  • $formBlockType = "Magento\Payment\Block\Form";
  • $infoBlockType = "Klarna\Core\Block\Info\Klarna";

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

<virtualType name="KPValueHandlerPool"
             type="Magento\Payment\Gateway\Config\ValueHandlerPool">
    <arguments>
        <argument name="handlers" xsi:type="array">
            <item name="title" xsi:type="string">
                Klarna\Kp\Gateway\Handler\TitleHandler
            </item>
            <item name="default" xsi:type="string">
                KPConfigValueHandler
            </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 KPValueHandlerPool object that it should return a Magento\Payment\Gateway\Config\ValueHandlerPool object.

This configuration tells the Object Manager that when a user wants a KPValueHandlerPool object that the following arguments should be used in the foo object's constructor.

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