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

Commit 3cc46be

Browse files
committed
:octocat:
1 parent fb8117b commit 3cc46be

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

examples/oauth-example-common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
};
4343

4444
$logger = new Log;
45-
$logger->addInstance(new ConsoleLog, 'console');
45+
$logger->addInstance(new ConsoleLog($options), 'console');
4646

4747
/** @var \chillerlan\HTTP\HTTPClientInterface $http */
4848
$http = new CurlClient($options);

src/Core/OAuthProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function __call(string $name, array $arguments):ResponseInterface{
234234
$params = [];
235235
}
236236

237-
$body = Psr7\clean_query_params($body);
237+
# $body = Psr7\clean_query_params($body); // @todo
238238
}
239239

240240
$params = Psr7\clean_query_params($params);

src/Storage/OAuthStorageAbstract.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414

1515
use chillerlan\OAuth\{Core\AccessToken, OAuthOptions};
1616
use chillerlan\Settings\SettingsContainerInterface;
17-
use Psr\Log\{LoggerAwareInterface, LoggerAwareTrait, LoggerInterface, NullLogger};
1817

19-
abstract class OAuthStorageAbstract implements OAuthStorageInterface, LoggerAwareInterface{
20-
use LoggerAwareTrait;
18+
abstract class OAuthStorageAbstract implements OAuthStorageInterface{
2119

2220
/**
2321
* @var \chillerlan\OAuth\OAuthOptions
@@ -28,11 +26,9 @@ abstract class OAuthStorageAbstract implements OAuthStorageInterface, LoggerAwar
2826
* OAuthStorageAbstract constructor.
2927
*
3028
* @param \chillerlan\Settings\SettingsContainerInterface|null $options
31-
* @param \Psr\Log\LoggerInterface|null $logger
3229
*/
33-
public function __construct(SettingsContainerInterface $options = null, LoggerInterface $logger = null){
30+
public function __construct(SettingsContainerInterface $options = null){
3431
$this->options = $options ?? new OAuthOptions;
35-
$this->logger = $logger ?? new NullLogger;
3632
}
3733

3834
/**

0 commit comments

Comments
 (0)