File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed
Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " php-etl/spreadsheet-plugin" ,
33 "description" : " Plugin for XLS Extractor and Loader" ,
4- "type" : " satellite -plugin" ,
4+ "type" : " gyroscops -plugin" ,
55 "license" : " MIT" ,
66 "authors" : [
77 {
4343 "branch-alias" : {
4444 "dev-master" : " 0.3.x-dev"
4545 },
46- "satellite " : {
47- "class " : " Kiboko\\ Plugin\\ Spreadsheet\\ Service"
46+ "gyroscops " : {
47+ "plugins " : [ " Kiboko\\ Plugin\\ Spreadsheet\\ Service" ]
4848 }
4949 },
5050 "config" : {
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ public function __construct(private ExpressionLanguage $interpreter)
2323 $ this ->configuration = new Spreadsheet \Configuration \Extractor ();
2424 }
2525
26+ public function interpreter (): ExpressionLanguage
27+ {
28+ return $ this ->interpreter ;
29+ }
30+
2631 public function configuration (): ConfigurationInterface
2732 {
2833 return $ this ->configuration ;
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ public function __construct(private ExpressionLanguage $interpreter)
2323 $ this ->configuration = new Spreadsheet \Configuration \Loader ();
2424 }
2525
26+ public function interpreter (): ExpressionLanguage
27+ {
28+ return $ this ->interpreter ;
29+ }
30+
2631 public function configuration (): ConfigurationInterface
2732 {
2833 return $ this ->configuration ;
Original file line number Diff line number Diff line change 1616 "loader " => "loader " ,
1717 ],
1818)]
19- final class Service implements Configurator \FactoryInterface
19+ final class Service implements Configurator \PipelinePluginInterface
2020{
2121 private Processor $ processor ;
22- private ConfigurationInterface $ configuration ;
22+ private Configurator \ PluginConfigurationInterface $ configuration ;
2323 private ExpressionLanguage $ interpreter ;
2424
2525 public function __construct (?ExpressionLanguage $ interpreter = null )
@@ -29,7 +29,12 @@ public function __construct(?ExpressionLanguage $interpreter = null)
2929 $ this ->interpreter = $ interpreter ?? new ExpressionLanguage ();
3030 }
3131
32- public function configuration (): ConfigurationInterface
32+ public function interpreter (): ExpressionLanguage
33+ {
34+ return $ this ->interpreter ;
35+ }
36+
37+ public function configuration (): Configurator \PluginConfigurationInterface
3338 {
3439 return $ this ->configuration ;
3540 }
You can’t perform that action at this time.
0 commit comments