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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Aug 9, 2018
1 parent 67765b9 commit 5568a8c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/oauth-example-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
use chillerlan\OAuth\{
OAuthOptions, Storage\SessionStorage
};
use chillerlan\Traits\{
ContainerInterface, DotEnv
};
use chillerlan\Traits\{DotEnv, ImmutableSettingsInterface};

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

Expand Down Expand Up @@ -60,7 +58,7 @@
'sleep' => 0.25,
];

/** @var \chillerlan\Traits\ContainerInterface $options */
/** @var \chillerlan\Traits\ImmutableSettingsInterface $options */
$options = new class($options_arr) extends OAuthOptions{
use DatabaseOptionsTrait, LogOptionsTrait;

Expand All @@ -75,7 +73,7 @@

protected $client;

public function __construct(ContainerInterface $options){
public function __construct(ImmutableSettingsInterface $options){
parent::__construct($options);
$this->client = new CurlClient($this->options);
}
Expand Down

0 comments on commit 5568a8c

Please sign in to comment.