Skip to content

Commit

Permalink
Merge Release v2.x-automation-test
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksiiBulba authored Jul 6, 2024
1 parent c9f8d99 commit c82021b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 42 deletions.
3 changes: 0 additions & 3 deletions Facade/RedisFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use Micro\Plugin\Redis\Business\Redis\RedisManagerInterface;
use Micro\Plugin\Redis\RedisPluginConfiguration;

/**
* @psalm-suppress DeprecatedInterface
*/
readonly class RedisFacade implements RedisFacadeInterface
{
public function __construct(private RedisManagerInterface $redisManager)
Expand Down
9 changes: 8 additions & 1 deletion Facade/RedisFacadeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
namespace Micro\Plugin\Redis\Facade;

use Micro\Plugin\Redis\Business\Redis\RedisManagerInterface;
use Micro\Plugin\Redis\RedisPluginConfiguration;

interface RedisFacadeInterface extends RedisManagerInterface, \Micro\Plugin\Redis\RedisFacadeInterface
interface RedisFacadeInterface extends RedisManagerInterface
{
/**
* @param string $clientName
*
* @return \Redis
*/
public function getClient(string $clientName = RedisPluginConfiguration::CLIENT_DEFAULT): \Redis;
}
27 changes: 0 additions & 27 deletions RedisFacadeInterface.php

This file was deleted.

7 changes: 4 additions & 3 deletions RedisPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Micro\Plugin\Redis\Business\Redis\RedisManager;
use Micro\Plugin\Redis\Business\Redis\RedisManagerInterface;
use Micro\Plugin\Redis\Facade\RedisFacade;
use Micro\Plugin\Redis\Facade\RedisFacadeInterface;

/**
* @method RedisPluginConfigurationInterface configuration()
Expand All @@ -32,12 +33,12 @@ class RedisPlugin implements DependencyProviderInterface, ConfigurableInterface

public function provideDependencies(Container $container): void
{
$container->register(\Micro\Plugin\Redis\Facade\RedisFacadeInterface::class, function (): Facade\RedisFacadeInterface {
$container->register(RedisFacadeInterface::class, function (): Facade\RedisFacadeInterface {
return $this->createRedisFacade();
});

$container->register(RedisFacadeInterface::class, function (Container $container) { // Deprecation support
return $container->get(\Micro\Plugin\Redis\Facade\RedisFacadeInterface::class);
$container->register(RedisFacadeInterface::class, function (Container $container) {
return $container->get(RedisFacadeInterface::class);
});
}

Expand Down
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"ext-redis": "*",
"micro/kernel-app": "^2.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.34"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"Micro\\Plugin\\Redis\\": "/"
Expand All @@ -25,10 +23,6 @@
]
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"minimum-stability": "dev"
}
}

0 comments on commit c82021b

Please sign in to comment.