diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-14 17:23:40 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-14 17:24:01 -0400 |
commit | 247a002a144ecfc882f365ad54c63663a9b00090 (patch) | |
tree | 0eaeaaa0e791e306069926ccfe87f01923a05fab /phpBB/phpbb | |
parent | 440904a0c8b9fb8da124d879366ae5284532c23e (diff) | |
download | forums-247a002a144ecfc882f365ad54c63663a9b00090.tar forums-247a002a144ecfc882f365ad54c63663a9b00090.tar.gz forums-247a002a144ecfc882f365ad54c63663a9b00090.tar.bz2 forums-247a002a144ecfc882f365ad54c63663a9b00090.tar.xz forums-247a002a144ecfc882f365ad54c63663a9b00090.zip |
[feature/oauth] Add constructors
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb')
18 files changed, 306 insertions, 0 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/service/amazon.php b/phpBB/phpbb/auth/provider/oauth/service/amazon.php index 740add0f3c..fe27a6110f 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/amazon.php +++ b/phpBB/phpbb/auth/provider/oauth/service/amazon.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_amazon extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/bitly.php b/phpBB/phpbb/auth/provider/oauth/service/bitly.php index 1de3183b84..6b6e08c19a 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/bitly.php +++ b/phpBB/phpbb/auth/provider/oauth/service/bitly.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_bitly extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/box.php b/phpBB/phpbb/auth/provider/oauth/service/box.php index 19e409a943..083212ec2a 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/box.php +++ b/phpBB/phpbb/auth/provider/oauth/service/box.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_box extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/dropbox.php b/phpBB/phpbb/auth/provider/oauth/service/dropbox.php index 3b4920bb0e..4fadcbca11 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/dropbox.php +++ b/phpBB/phpbb/auth/provider/oauth/service/dropbox.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_dropbox extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/facebook.php b/phpBB/phpbb/auth/provider/oauth/service/facebook.php index 0652028bf8..87e8749b55 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/facebook.php +++ b/phpBB/phpbb/auth/provider/oauth/service/facebook.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_facebook extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/fitbit.php b/phpBB/phpbb/auth/provider/oauth/service/fitbit.php index d75b971fcf..bf1aeac98e 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/fitbit.php +++ b/phpBB/phpbb/auth/provider/oauth/service/fitbit.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_fitbit extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/foursqare.php b/phpBB/phpbb/auth/provider/oauth/service/foursqare.php index d03725bcfd..00ebd9889e 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/foursqare.php +++ b/phpBB/phpbb/auth/provider/oauth/service/foursqare.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_foursquare extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/github.php b/phpBB/phpbb/auth/provider/oauth/service/github.php index 30d23b0e4f..91ae0c1287 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/github.php +++ b/phpBB/phpbb/auth/provider/oauth/service/github.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_github extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/google.php b/phpBB/phpbb/auth/provider/oauth/service/google.php index 50cfee86e0..b9b1851424 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/google.php +++ b/phpBB/phpbb/auth/provider/oauth/service/google.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_google extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/instagram.php b/phpBB/phpbb/auth/provider/oauth/service/instagram.php index ae30d2d0b6..0570f79138 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/instagram.php +++ b/phpBB/phpbb/auth/provider/oauth/service/instagram.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_instagram extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/linkedin.php b/phpBB/phpbb/auth/provider/oauth/service/linkedin.php index 3231270cff..faf26132b0 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/linkedin.php +++ b/phpBB/phpbb/auth/provider/oauth/service/linkedin.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_linkedin extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/microsoft.php b/phpBB/phpbb/auth/provider/oauth/service/microsoft.php index 7fb47f45fc..d607f3392d 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/microsoft.php +++ b/phpBB/phpbb/auth/provider/oauth/service/microsoft.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_microsoft extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/paypal.php b/phpBB/phpbb/auth/provider/oauth/service/paypal.php index 48b361921a..8a81c460ce 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/paypal.php +++ b/phpBB/phpbb/auth/provider/oauth/service/paypal.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_paypal extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_auth_scope() diff --git a/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php b/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php index e000c68a6f..ac43ea5e48 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php +++ b/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_soundcloud extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/tumblr.php b/phpBB/phpbb/auth/provider/oauth/service/tumblr.php index 2098cc92e1..9b6d2e2f5e 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/tumblr.php +++ b/phpBB/phpbb/auth/provider/oauth/service/tumblr.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_tumblr extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/twitter.php b/phpBB/phpbb/auth/provider/oauth/service/twitter.php index 57d07e1c15..23dbdbb6c2 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/twitter.php +++ b/phpBB/phpbb/auth/provider/oauth/service/twitter.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_twitter extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php b/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php index 6b43bf39d8..8a328b234f 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php +++ b/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_vkontakte extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() diff --git a/phpBB/phpbb/auth/provider/oauth/service/yammer.php b/phpBB/phpbb/auth/provider/oauth/service/yammer.php index 13c638def7..fe14f13077 100644 --- a/phpBB/phpbb/auth/provider/oauth/service/yammer.php +++ b/phpBB/phpbb/auth/provider/oauth/service/yammer.php @@ -23,6 +23,23 @@ if (!defined('IN_PHPBB')) class phpbb_auth_provider_oauth_service_yammer extends phpbb_auth_provider_oauth_service_base { /** + * phpBB config + * + * @var phpbb_config + */ + protected $config; + + /** + * Constructor + * + * @param phpbb_config $config + */ + public function __construct(phpbb_config $config) + { + $this->config = $config; + } + + /** * {@inheritdoc} */ public function get_service_credentials() |