Skip to content

Commit 2b4ee41

Browse files
authored
Merge pull request #4 from Micro-PHP/release-1.3
v1.3 release
2 parents c043ba4 + dec626d commit 2b4ee41

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "micro/kernel-boot-configuration",
33
"description": "Micro Framework: Kernel Boot loader - component to provide plugin configuration",
44
"type": "library",
5-
"version": "1.2",
5+
"version": "1.3",
66
"require": {
77
"micro/kernel": "^1"
88
},
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

0 commit comments

Comments
 (0)