-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdi.xml
41 lines (39 loc) · 1.5 KB
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<!--
/**
* Serverless GCP
*
* Add GCP as one of the supported hosting providers on the serverless framework module for Magento.
*
* @package ImDigital\ServerlessGcp
* @author Igor Ludgero Miura <[email protected]>
* @copyright Copyright (c) 2023 Imagination Media (https://www.imdigital.com/)
* @license Private
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<!-- Injecting cloud provider -->
<type name="ImDigital\Serverless\Model\ServerlessFunctionConfigRepository">
<arguments>
<argument name="cloudProviders" xsi:type="array">
<item name="gcp" xsi:type="object">ImDigital\ServerlessGcp\Model\Cloud\Provider</item>
</argument>
</arguments>
</type>
<type name="ImDigital\Serverless\Model\Config\Source\Provider">
<arguments>
<argument name="cloudProviders" xsi:type="array">
<item name="gcp" xsi:type="array">
<item name="label" xsi:type="string">Google Cloud</item>
<item name="value" xsi:type="string">gcp</item>
</item>
</argument>
</arguments>
</type>
<!-- Inject log file -->
<type name="ImDigital\ServerlessGcp\Model\Cloud\Provider">
<arguments>
<argument name="logger" xsi:type="object">ImDigital\Serverless\Logger\Logger</argument>
</arguments>
</type>
</config>