Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Allow Config implementation to be specified #12

Open
hassankhan opened this issue Mar 8, 2016 · 0 comments
Open

Allow Config implementation to be specified #12

hassankhan opened this issue Mar 8, 2016 · 0 comments

Comments

@hassankhan
Copy link
Member

Expected Behavior

$opts = ['config' => MyConfig::class];
$client = new Instagram($clientId, $clientSecret, $accessToken, $redirectUrl, $opts);

Possible Solution

Add a new option to the configuration options. Use the option in a provider to instantiate it.

Context

Lets developers use a class rather than passing an array of parameters to the constructor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant