Skip to content

Commit

Permalink
Merge pull request #4 from Micro-PHP/release-1.3
Browse files Browse the repository at this point in the history
v1.3 release
  • Loading branch information
Asisyas authored Nov 25, 2022
2 parents c043ba4 + dec626d commit 2b4ee41
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "micro/kernel-boot-configuration",
"description": "Micro Framework: Kernel Boot loader - component to provide plugin configuration",
"type": "library",
"version": "1.2",
"version": "1.3",
"require": {
"micro/kernel": "^1"
},
Expand Down
29 changes: 29 additions & 0 deletions src/Plugin/PluginConfigurationTrait.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Micro\Framework\Kernel\Plugin;

use Micro\Framework\Kernel\Configuration\PluginConfigurationInterface;

trait PluginConfigurationTrait
{
/**
* @var PluginConfigurationInterface
*/
private PluginConfigurationInterface $configuration;

/**
* {@inheritDoc}
*/
public function setConfiguration(PluginConfigurationInterface $pluginConfiguration): void
{
$this->configuration = $pluginConfiguration;
}

/**
* {@inheritDoc}
*/
public function configuration(): PluginConfigurationInterface
{
return $this->configuration;
}
}

0 comments on commit 2b4ee41

Please sign in to comment.