You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| logger | the service that will log exceptions | \Psr\Log\LoggerInterface ||
41
+
| client | client to choose depending on the Magento version. Available clients are: V2_1, V2_2, V2_3, V2_4 | Client ||
42
+
| page size | (Optional) maximum amount of entities to retrieve in a single payload | int | 100 |
43
+
| filter groups | (Optional) groups of filters to use when searching for entities | array |[]|
44
+
36
45
```yaml
37
46
custom:
38
47
extractor:
@@ -41,16 +50,14 @@ custom:
41
50
Kiboko\Component\Flow\Magento2\CustomerExtractor:
42
51
public: true
43
52
arguments:
44
-
- '@Monolog\Logger'
45
-
- '@Kiboko\Magento\V2_1\Client'# Client to use depending on the Magento version.
46
-
# Available clients are:
47
-
# V2_1, V2_2, V2_3, V2_4
53
+
- '@Monolog\Logger'# Logger
54
+
- '@Kiboko\Magento\V2_1\Client'# Client
48
55
- 500# Page size
49
-
- [] #Optional filter groups
56
+
- [] #Filter groups
50
57
51
58
Kiboko\Magento\V2_1\Client:
52
59
factory:
53
-
class: 'Kiboko\Magento\V2_1\Client'
60
+
class: 'Kiboko\Magento\V2_1\Client'# Client
54
61
method: 'create'
55
62
arguments:
56
63
- '@Http\Client\Common\PluginClient'
@@ -85,6 +92,8 @@ custom:
85
92
#### With filters
86
93
Filters and filter groups can be specified.
87
94
Filters in a group are chained with `OR`. Groups are chained with `AND`.
95
+
96
+
In this example we will search for customers that were updated after 1985 (`@date_filter_group`) and which have either the ID 17 or 46 (`@id_filter_group`).
88
97
```yaml
89
98
# ...
90
99
Kiboko\Component\Flow\Magento2\CustomerExtractor:
@@ -94,8 +103,10 @@ Filters in a group are chained with `OR`. Groups are chained with `AND`.
94
103
- '@Kiboko\Magento\V2_1\Client'
95
104
- 500
96
105
- [ '@date_filter_group', '@id_filter_group' ]
97
-
# updated_at >= 1985-10-26 11:25:00 AND (entity_id = 12 OR entity_id = 64)
98
-
106
+
# updated_at >= 1985-10-26 11:25:00 AND (entity_id = 17 OR entity_id = 46)
107
+
108
+
# ...
109
+
99
110
date_filter_group:
100
111
class: Kiboko\Component\Flow\Magento2\FilterGroup
101
112
calls:
@@ -110,24 +121,24 @@ Filters in a group are chained with `OR`. Groups are chained with `AND`.
0 commit comments