File tree Expand file tree Collapse file tree 9 files changed +5
-47
lines changed
src/core/etl/src/Flow/ETL Expand file tree Collapse file tree 9 files changed +5
-47
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ interface Pipeline
13
13
{
14
14
public function add (Loader |Transformer $ pipe ) : self ;
15
15
16
- public function closure (FlowContext $ context ) : void ;
17
-
18
16
public function has (string $ transformerClass ) : bool ;
19
17
20
18
public function pipes () : Pipes ;
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ public function add(Loader|Transformer $pipe) : self
30
30
return $ this ;
31
31
}
32
32
33
- public function closure (FlowContext $ context ) : void
34
- {
35
- $ this ->pipeline ->closure ($ context );
36
- }
37
-
38
33
public function has (string $ transformerClass ) : bool
39
34
{
40
35
return $ this ->pipeline ->has ($ transformerClass );
Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ public function add(Loader|Transformer $pipe) : Pipeline
19
19
return $ this ;
20
20
}
21
21
22
- public function closure (FlowContext $ context ) : void
23
- {
24
- $ this ->pipeline ->closure ($ context );
25
- }
26
-
27
22
public function has (string $ transformerClass ) : bool
28
23
{
29
24
return $ this ->pipeline ->has ($ transformerClass );
Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ public function add(Loader|Transformer $pipe) : self
28
28
return $ this ;
29
29
}
30
30
31
- public function closure (FlowContext $ context ) : void
32
- {
33
- $ this ->pipeline ->closure ($ context );
34
- }
35
-
36
31
public function has (string $ transformerClass ) : bool
37
32
{
38
33
return $ this ->pipeline ->has ($ transformerClass );
Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ public function add(Loader|Transformer $pipe) : self
22
22
return $ this ;
23
23
}
24
24
25
- public function closure (FlowContext $ context ) : void
26
- {
27
- $ this ->pipeline ->closure ($ context );
28
- }
29
-
30
25
public function has (string $ transformerClass ) : bool
31
26
{
32
27
return $ this ->pipeline ->has ($ transformerClass );
Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ public function add(Loader|Transformer $pipe) : Pipeline
23
23
return $ this ;
24
24
}
25
25
26
- public function closure (FlowContext $ context ) : void
27
- {
28
- $ this ->pipeline ->closure ($ context );
29
- }
30
-
31
26
public function has (string $ transformerClass ) : bool
32
27
{
33
28
return $ this ->pipeline ->has ($ transformerClass );
Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ public function add(Loader|Transformer $pipe) : Pipeline
36
36
return $ this ;
37
37
}
38
38
39
- public function closure (FlowContext $ context ) : void
40
- {
41
- $ this ->pipeline ->closure ($ context );
42
- }
43
-
44
39
public function has (string $ transformerClass ) : bool
45
40
{
46
41
return $ this ->pipeline ->has ($ transformerClass );
Original file line number Diff line number Diff line change @@ -29,15 +29,6 @@ public function add(Loader|Transformer $pipe) : self
29
29
return $ this ;
30
30
}
31
31
32
- public function closure (FlowContext $ context ) : void
33
- {
34
- foreach ($ this ->pipes ->all () as $ pipe ) {
35
- if ($ pipe instanceof Loader && $ pipe instanceof Closure) {
36
- $ pipe ->closure ($ context );
37
- }
38
- }
39
- }
40
-
41
32
public function has (string $ transformerClass ) : bool
42
33
{
43
34
return $ this ->pipes ->has ($ transformerClass );
@@ -84,7 +75,11 @@ public function process(FlowContext $context) : \Generator
84
75
}
85
76
}
86
77
87
- $ this ->closure ($ context );
78
+ foreach ($ this ->pipes ->all () as $ pipe ) {
79
+ if ($ pipe instanceof Loader && $ pipe instanceof Closure) {
80
+ $ pipe ->closure ($ context );
81
+ }
82
+ }
88
83
}
89
84
90
85
public function setSource (Extractor $ extractor ) : self
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ public function add(Loader|Transformer $pipe) : self
17
17
return $ this ;
18
18
}
19
19
20
- public function closure (FlowContext $ context ) : void
21
- {
22
- $ this ->pipeline ->closure ($ context );
23
- }
24
-
25
20
public function has (string $ transformerClass ) : bool
26
21
{
27
22
return $ this ->pipeline ->has ($ transformerClass );
You can’t perform that action at this time.
0 commit comments