mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 14:49:53 +02:00
refactor (#4244)
This commit is contained in:
parent
bb2f471a03
commit
6a24e53d6c
7 changed files with 69 additions and 66 deletions
|
@ -25,7 +25,10 @@ class FeedItem
|
|||
|
||||
private function __construct()
|
||||
{
|
||||
$this->logger = RssBridge::getLogger();
|
||||
global $container;
|
||||
|
||||
// The default NullLogger is for when running the unit tests
|
||||
$this->logger = $container['logger'] ?? new NullLogger();
|
||||
}
|
||||
|
||||
public function __set($name, $value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue