Skip to content

Commit

Permalink
Let the additional config keys be declared as a property (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Nov 10, 2024
1 parent 8ce66f5 commit ab0691b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ConfigTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ trait ConfigTrait
*/
protected $config;

/**
* The additional config keys that are allowed to be retrieved from the config.
*
* @var array
*/
protected static array $additionalConfigKeys = [];

/**
* @param \SocialiteProviders\Manager\Contracts\OAuth1\ProviderInterface|\SocialiteProviders\Manager\Contracts\OAuth2\ProviderInterface $config
*/
Expand All @@ -28,11 +35,13 @@ public function setConfig(ConfigInterface $config)
}

/**
* Get the additional config keys.
*
* @return array
*/
public static function additionalConfigKeys()
{
return [];
return self::$additionalConfigKeys;
}

/**
Expand Down

0 comments on commit ab0691b

Please sign in to comment.