File: vendor/magento/module-braintree/etc/di.xml
<virtualType name="BraintreeCreditCardVaultFacade"
type="Magento\Vault\Model\Method\Vault">
<arguments>
<argument name="config" xsi:type="object">
BraintreeVaultPaymentConfig
</argument>
<argument name="valueHandlerPool" xsi:type="object">
BraintreeVaultPaymentValueHandlerPool
</argument>
<argument name="vaultProvider" xsi:type="object">
BraintreeFacade
</argument>
<argument name="code" xsi:type="const">
Magento\Braintree\Model\Ui\ConfigProvider::CC_VAULT_CODE
</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
BraintreeCreditCardVaultFacade
object that it should return a
Magento\Vault\Model\Method\Vault
object.
This configuration tells the Object Manager that when a user wants a
BraintreeCreditCardVaultFacade
object that the following arguments should be used in the foo object's constructor.
|