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
@@ -33,169 +33,58 @@ This plugin is already integrated into the Satellite package, so you can’t req
33
33
34
34
Unlike other plugins, the configuration is the same whether it is an extractor, a transformer or a loader.
35
35
36
-
First you need to [determine your services](../../feature/services) in your pipeline or workflow and then use the `use`
37
-
option which allows you to define which service to use.
38
-
39
36
### Building an extractor
40
37
38
+
In the example given, we explain how to configure a custom extractor with the `Bar` class located in the `App\Class` namespace.
39
+
40
+
Here's a more detailed explanation:
41
+
41
42
```yaml
42
43
custom:
43
44
extractor:
44
-
use: 'App\Class\Bar'
45
+
use: 'App\Class\Bar'# This line specifies the extractor class you want to use.
45
46
services:
46
-
App\Class\Bar: ~
47
+
App\Class\Bar: ~# Here, we declare the service associated with the Bar class with the syntax App\Class\Bar: ~. This simply indicates that we want to use the default parameters for this service.
47
48
```
48
49
50
+
For more details about service configurations, please visit the [declaring-services](../../feature/services) documentation.
51
+
49
52
### Building a transformer
50
53
54
+
In the example given, we explain how to configure a custom extractor with the `Bar` class located in the `App\Class` namespace.
55
+
56
+
Here's a more detailed explanation:
57
+
51
58
```yaml
52
59
custom:
53
60
transformer:
54
-
use: 'App\Class\Bar'
61
+
use: 'App\Class\Bar' # This line specifies the extractor class you want to use.
55
62
services:
56
-
App\Class\Bar:
57
-
factory:
63
+
App\Class\Bar: # Here, we declare the service associated with the Bar class.
64
+
factory: # This section indicates that the service must be created by calling the extract method of the App\Class\Bar class.
58
65
class: App\Class\Bar
59
66
method: extract
60
-
arguments:
67
+
arguments: # The arguments to be passed to the extract method. In this example, the @foo symbol indicates that the foo service should be injected as an argument. Make sure that the foo service is configured correctly elsewhere in your pipeline.
61
68
- '@foo'
69
+
foo: ~
62
70
```
63
71
64
-
### Building a loader
65
-
66
-
```yaml
67
-
custom:
68
-
loader:
69
-
use: 'App\Class\Bar'
70
-
services:
71
-
App\Class\Bar:
72
-
calls:
73
-
- withUsername: [ 'admin' ]
74
-
```
75
-
76
-
## Usage examples
77
-
78
-
Some examples of pipeline with Magento to extract, FastMap to transform and ZohoCRM to load data
72
+
For more details about service configurations, please visit the [declaring-services](../../feature/services) documentation.
App\Class\Bar: # Here, we declare the service associated with the Bar class.
86
+
calls: # This section indicates that specific method calls must be made to the service instance.
87
+
- withUsername: [ 'admin' ] # This means that a method call named withUsername must be made to the instance of the Bar class, with the username "admin" passed as an argument.
201
88
```
89
+
90
+
For more details about service configurations, please visit the [declaring-services](../../feature/services) documentation.
0 commit comments