File: vendor/paypal/module-braintree-core/etc/di.xml
<virtualType name="BraintreeLpm"
type="Magento\Payment\Model\Method\Adapter">
<arguments>
<argument name="code" xsi:type="const">
PayPal\Braintree\Model\Lpm\Ui\ConfigProvider::METHOD_CODE
</argument>
<argument name="valueHandlerPool" xsi:type="object">
BraintreeLpmValueHandlerPool
</argument>
<argument name="validatorPool" xsi:type="object">
BraintreeLpmValidatorPool
</argument>
<argument name="commandPool" xsi:type="object">
BraintreeLpmCommandPool
</argument>
<argument name="formBlockType" xsi:type="object">
Magento\Payment\Block\Form
</argument>
<argument name="infoBlockType" xsi:type="string">
PayPal\Braintree\Block\Info
</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
BraintreeLpm
object that it should return a
Magento\Payment\Model\Method\Adapter
object.
This configuration tells the Object Manager that when a user wants a
BraintreeLpm
object that the following arguments should be used in the foo object's constructor.
|