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

Commit 5568a8c

Browse files
committed
1 parent 67765b9 commit 5568a8c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/oauth-example-common.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
use chillerlan\OAuth\{
2020
OAuthOptions, Storage\SessionStorage
2121
};
22-
use chillerlan\Traits\{
23-
ContainerInterface, DotEnv
24-
};
22+
use chillerlan\Traits\{DotEnv, ImmutableSettingsInterface};
2523

2624
ini_set('date.timezone', 'Europe/Amsterdam');
2725

@@ -60,7 +58,7 @@
6058
'sleep' => 0.25,
6159
];
6260

63-
/** @var \chillerlan\Traits\ContainerInterface $options */
61+
/** @var \chillerlan\Traits\ImmutableSettingsInterface $options */
6462
$options = new class($options_arr) extends OAuthOptions{
6563
use DatabaseOptionsTrait, LogOptionsTrait;
6664

@@ -75,7 +73,7 @@
7573

7674
protected $client;
7775

78-
public function __construct(ContainerInterface $options){
76+
public function __construct(ImmutableSettingsInterface $options){
7977
parent::__construct($options);
8078
$this->client = new CurlClient($this->options);
8179
}

0 commit comments

Comments
 (0)