Skip to content

Commit 6da6cb3

Browse files
committed
v1.0 release
1 parent 63f7d5e commit 6da6cb3

File tree

6 files changed

+12
-26
lines changed

6 files changed

+12
-26
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Micro Framework - plugin for UUID support",
44
"type": "library",
55
"license": "MIT",
6-
"version": "0.1",
6+
"version": "1.0",
77
"autoload": {
88
"psr-4": {
99
"Micro\\Plugin\\Uuid\\": "src/"
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=8.0",
19+
"micro/kernel": "^1",
2020
"ramsey/uuid": "^4.2"
2121
}
2222
}

src/UuidFacade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class UuidFacade implements UuidFacadeInterface
1212
* @param UuidExtractorFactoryInterface $extractorFactory
1313
*/
1414
public function __construct(
15-
private UuidGeneratorFactoryInterface $generatorFactory,
16-
private UuidExtractorFactoryInterface $extractorFactory
15+
private readonly UuidGeneratorFactoryInterface $generatorFactory,
16+
private readonly UuidExtractorFactoryInterface $extractorFactory
1717
)
1818
{
1919
}

src/UuidFacadeFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class UuidFacadeFactory implements UuidFacadeFactoryInterface
1212
* @param UuidExtractorFactoryInterface $extractorFactory
1313
*/
1414
public function __construct(
15-
private UuidGeneratorFactoryInterface $generatorFactory,
16-
private UuidExtractorFactoryInterface $extractorFactory
15+
private readonly UuidGeneratorFactoryInterface $generatorFactory,
16+
private readonly UuidExtractorFactoryInterface $extractorFactory
1717
)
1818
{
1919
}

src/UuidPlugin.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
namespace Micro\Plugin\Uuid;
44

55
use Micro\Component\DependencyInjection\Container;
6-
use Micro\Framework\Kernel\Plugin\AbstractPlugin;
6+
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
77
use Micro\Plugin\Uuid\Business\UuidExtractorFactory;
88
use Micro\Plugin\Uuid\Business\UuidExtractorFactoryInterface;
99
use Micro\Plugin\Uuid\Business\UuidGeneratorFactory;
1010
use Micro\Plugin\Uuid\Business\UuidGeneratorFactoryInterface;
1111

12-
class UuidPlugin extends AbstractPlugin
12+
/**
13+
* @author Stanislau Komar <[email protected]>
14+
*/
15+
class UuidPlugin implements DependencyProviderInterface
1316
{
1417
/**
1518
* {@inheritDoc}
1619
*/
1720
public function provideDependencies(Container $container): void
1821
{
19-
$container->register(UuidFacadeInterface::class, function(Container $container) {
22+
$container->register(UuidFacadeInterface::class, function() {
2023
return $this->createUuidFacadeFactory()->create();
2124
});
2225
}

src/UuidPluginConfiguration.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/UuidPluginConfigurationInterface.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)