Enter a type and click search.




Results for KPValidatorPool

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="KPValidatorPool"
             type="Magento\Payment\Gateway\Validator\ValidatorPool">
    <arguments>
        <argument name="validators" xsi:type="array">
            <item name="country" xsi:type="string">
                KPCountryValidator
            </item>
            <item name="availability" xsi:type="string">
                Klarna\Kp\Gateway\Validator\SessionValidator
            </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 KPValidatorPool object that it should return a Magento\Payment\Gateway\Validator\ValidatorPool object.

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

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