Skip to content

Commit

Permalink
Make sure the dummy adapter implements logger aware (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Jul 31, 2017
1 parent 9582892 commit 6b1b3aa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.

## 1.1.0

### Changed

- The `DummyAdapter` implements `LoggerAwareInterface`

## 1.0.0

### Added
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"symfony/framework-bundle": "^2.7 || ^3.0",
"symfony/options-resolver": "^2.7 || ^3.0",
"psr/cache": "^1.0",
"psr/log": "^1.0",
"cache/namespaced-cache": "^1.0"
},
"require-dev": {
Expand Down
8 changes: 7 additions & 1 deletion src/DummyAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@

use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;

/**
* This client is used as a placeholder for the dependency injection. It will never be used.
*
* @author Tobias Nyholm <[email protected]>
*/
final class DummyAdapter implements CacheItemPoolInterface
final class DummyAdapter implements CacheItemPoolInterface, LoggerAwareInterface
{
public function getItem($key)
{
Expand Down Expand Up @@ -56,4 +58,8 @@ public function saveDeferred(CacheItemInterface $item)
public function commit()
{
}

public function setLogger(LoggerInterface $logger)
{
}
}

0 comments on commit 6b1b3aa

Please sign in to comment.