Skip to content

Commit

Permalink
Fix configuration problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub-Fajkus committed Mar 24, 2022
1 parent 5a28197 commit 37148af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Learn more in the [documentation](https://github.com/Kdyby/Redis/blob/master/doc
-----

Homepage [http://www.kdyby.org](http://www.kdyby.org) and repository [http://github.com/kdyby/Redis](http://github.com/kdyby/Redis).

2 changes: 0 additions & 2 deletions src/Kdyby/Redis/DI/Config/SessionClientSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public function complete($value, \Nette\Schema\Context $context)
$value = $this->expandParameters($value);
}

$value = $this->getSchema()->complete($value, $context);

return $value;
}

Expand Down
5 changes: 5 additions & 0 deletions tests/KdybyTests/Redis/ExtensionTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ class ExtensionTest extends \Tester\TestCase
$config->addConfig(__DIR__ . '/files/session.neon');
$dic = $config->createContainer();
Assert::true($dic->getService('redis.client') instanceof Kdyby\Redis\RedisClient);

/** @var \Kdyby\Redis\RedisClient $client */
$client = $dic->getService('redis.sessionHandler_client');
Assert::same(1, $client->getDatabase());

Assert::true($dic->hasService('redis.sessionHandler'));
Assert::type(\Kdyby\Redis\RedisSessionHandler::class, $dic->getService('redis.sessionHandler'));
Assert::false($dic->hasService('redis.cacheJournal'));
Expand Down

0 comments on commit 37148af

Please sign in to comment.