File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " micro/kernel-boot-configuration" ,
3
3
"description" : " Micro Framework: Kernel Boot loader - component to provide plugin configuration" ,
4
4
"type" : " library" ,
5
- "version" : " 1.2 " ,
5
+ "version" : " 1.3 " ,
6
6
"require" : {
7
7
"micro/kernel" : " ^1"
8
8
},
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Micro \Framework \Kernel \Plugin ;
4
+
5
+ use Micro \Framework \Kernel \Configuration \PluginConfigurationInterface ;
6
+
7
+ trait PluginConfigurationTrait
8
+ {
9
+ /**
10
+ * @var PluginConfigurationInterface
11
+ */
12
+ private PluginConfigurationInterface $ configuration ;
13
+
14
+ /**
15
+ * {@inheritDoc}
16
+ */
17
+ public function setConfiguration (PluginConfigurationInterface $ pluginConfiguration ): void
18
+ {
19
+ $ this ->configuration = $ pluginConfiguration ;
20
+ }
21
+
22
+ /**
23
+ * {@inheritDoc}
24
+ */
25
+ public function configuration (): PluginConfigurationInterface
26
+ {
27
+ return $ this ->configuration ;
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments