-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure the dummy adapter implements logger aware (#67)
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
{ | ||
|
@@ -56,4 +58,8 @@ public function saveDeferred(CacheItemInterface $item) | |
public function commit() | ||
{ | ||
} | ||
|
||
public function setLogger(LoggerInterface $logger) | ||
{ | ||
} | ||
} |