Skip to content

Commit 7541ac7

Browse files
committed
Extract oauth_service.class config parameter
1 parent 9d80465 commit 7541ac7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Stack/OAuth/ContainerConfig.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ public function process(Pimple $container)
3434
return new StreamClient();
3535
});
3636

37+
$container['oauth_service.class'] = 'OAuth\OAuth1\Service\Twitter';
38+
3739
$container['oauth_service'] = $container->share(function ($container) {
38-
return new Twitter(
40+
return new $container['oauth_service.class'](
3941
$container['credentials'],
4042
$container['http_client'],
4143
$container['storage'],

0 commit comments

Comments
 (0)