Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit f824592

Browse files
committed
:octocat:
1 parent bfbe674 commit f824592

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/oauth-example-common.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use chillerlan\Traits\{
2424
ContainerInterface, DotEnv
2525
};
26+
use Psr\Log\NullLogger;
2627

2728
ini_set('date.timezone', 'Europe/Amsterdam');
2829

@@ -103,12 +104,12 @@ public function request(string $url, array $params = null, string $method = null
103104

104105
};
105106

106-
#$http->setLogger($logger);
107+
$http->setLogger(new NullLogger);
107108

108109
/** @var \chillerlan\Database\Database $db */
109110
$db = new Database($options);
110-
#$db->setLogger($logger);
111+
$db->setLogger(new NullLogger);
111112

112113
/** @var \chillerlan\OAuth\Storage\TokenStorageInterface $storage */
113114
$storage = new SessionTokenStorage($options); //new DBTokenStorage($options, $db);
114-
#$storage->setLogger($logger);
115+
$storage->setLogger(new NullLogger);

0 commit comments

Comments
 (0)